Another test that can be used to diagnose salivary gland cancer is an endoscopy. During an endoscopy, a thin, lighted tube called an endoscope is used to look at the mouth, throat and larynx.