A sample of your urine is analyzed in the laboratory for presence of this infection. A swab. For women, your doctor takes a swab of the discharge from your cervix for culture or antigen testing for chlamydia. This can be done during a routine Pap test.