When a rod dipped in hydrochloric acid is bring near the mouth of test tube containing ammonia, the formation of ammonium chloride fumes takes place. This is used as a test to detect presence of ammonia.
The reaction taking place can be shown as:
NH3 + HCl → NH4Cl