Your health care provider may ask you to provide a urine sample or may use (or ask you to use) a cotton swab to get a sample from your vagina or cervix or perform an endometrial biopsy or a cotton swab to get a sample from the urethra. Self test kits are also available for you to collect samples at home and mail back to a lab.