These include infection with a fungi like ... and look for its symptoms. Endoscopy: It works by insertion of a long thin tube, with a camera, into the stomach to check for inflammation.