Prior to performing an anterior fundoplication during a myotomy, the surgeon performs a leak test using insufflation of air with a gastroscope. The absence of any bubbles confirms that the mucosa is intact.