In some cases, your doctor may recommend that you get a test called a modified barium swallow. You’ll drink a special liquid that coats your mouth, throat, and esophagus, and your doctor will give you an X-ray. The fluid makes your insides stand out on the image. The test helps your doctor pinpoint where and why you’re having trouble swallowing.