During a prostate biopsy test, a doctor inserts a thin needle into the rectum, between the scrotum and anus, or through the urethra and extracts prostate tissue for microscopic testing, says WebMD. Either local or general anesthesia may be used for this procedure. Continue Reading.