The test involves a microscopic examination of the sputum sample to detect the presence of acid-fast bacilli. The AFB smear/ZN stain is a preliminary test that can provide quick results, but it is not as sensitive as other diagnostic tests for TB, such as culture and PCR.