In this test, your sputum (or mucous that is coughed up) is collected and examined under the microscope to look for cancer cells. The most accurate way to do this test is to collect and analyze early morning mucus for three days.