A line probe assay for the simultaneous detection and identification of the genus Mycobacterium and 16 different mycobacterial species. The test is based on the nucleotide differences in the 16S-23S rRNA spacer region and can be performed starting from either liquid or solid culture