The test is usually performed on samples collected during a Pap smear or a biopsy. The collected cells are subjected to DNA extraction, followed by amplification using techniques such as Polymerase Chain Reaction (PCR) or Hybrid Capture. These methods are designed to amplify and detect HPV DNA sequences, enabling the identification of specific HPV types present in the sample.