The urine can be tested for chlamydia by a doctor or nurse. Instead, the doctor may collect a sample from the vagina, penis, rectum, or throat. The examination is simple and painless.