The Marsh test detects trace amounts of arsenic by first converting the element into arsine gas. This gas is then subjected to thermal decomposition, which causes the arsenic to deposit as a characteristic black "mirror" on the interior of a narrow glass tube.