The Hinsberg test uses benzenesulfonyl chloride ($C_6H_5SO_2Cl$) to distinguish primary, secondary, and tertiary amines. Primary amines yield a sulfonamide salt soluble in alkali, secondary amines give an insoluble sulfonamide, and tertiary amines do not react because they lack an N-H bond available for sulfonylation.