The test is performed on a sample of cerebrospinal fluid. This is typically obtained through a lumbar puncture (spinal tap) procedure, where a needle is inserted into the lower part of the spinal column to withdraw a small amount of CSF for testing.