Surgery

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