Breath tests typically involve the patient breathing into a specialized device that collects and analyzes the exhaled air. For example, in a hydrogen breath test, the patient ingests a specific carbohydrate, and the breath samples are collected at regular intervals. The collected samples are then analyzed for the presence of hydrogen or methane, which indicates malabsorption or bacterial overgrowth.