how do i use a Transistor output optoisolators

im trying to wire one up just to test it. but how do i go about doing it. never used one before and im not having much luck

http://www.rapidonline.com/Electronic-Components/Optoelectronics/Photocouplers/Transistor-output-optoisolators/29285

Wire up the input just like you would wire an LED with a current limiting resistor. Then wire the output emitter to ground, collector to an LED, LED to resistor, resistor to +5.
The the LED should turn on when you activate the input.