HPV testing is usually conducted through a sample of cells collected from the cervix, similar to a Pap smear. The sample is then tested in a laboratory to detect the genetic material (DNA or RNA) of high-risk HPV types. Testing can be done alone or in conjunction with a Pap test, known as co-testing.