A 35 year old man presents complaining of heartburn after eating for the last 3 months. He admits to a poor diet and his symptoms are worse after a large meal or lying down. He denies other symptoms and his examination is normal but he a raised BMI of 31 kg/m2. A trial of lansoprazole has improved things only slightly.
What is the most appropriate investigation?