The night before the test, drink a lot of water and other liquids to help you cough up the phlegm.