Basically you sleep in a hotel-like room but with a bunch of wiring hooked-up to your head and body. It's painless, except for the discomfort of sleeping with all those wires. The "output" of the test is an index called AHI, which indicates your level of apnea. AHI > 5 means you might need a CPAP or some other kind of apnea treatment.