Surgery

A patient with a cavitatory lesion in right upper lobe of lung. The best investigation is: