Answer: endoscopy
Explanation: During endoscopy, your doctor passes a hollow tube equipped with a lens (endoscope) down your throat and into your esophagus, stomach and small intestine. Using the endoscope, your doctor looks for ulcers. If your doctor detects an ulcer, a small tissue sample (biopsy) may be removed for examination in a lab.