Hypocretin levels can be measured through a lumbar puncture, where a sample of cerebrospinal fluid is collected and analyzed. This test is particularly useful in diagnosing narcolepsy type 1. Low hypocretin levels strongly suggest a diagnosis of narcolepsy, especially when combined with clinical symptoms.