Drug resistance can be detected using special laboratory tests which test the bacteria for sensitivity to the drugs or detect resistance patterns. These tests can be molecular in type (such as Xpert MTB/RIF) or else culture-based.