Buggy code:
@ Category ( LargeTests . class ) public class TestMobCompactor { private static final HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility ( ) ; private Configuration conf = null ; private String tableNameAsString ; private TableName tableName ; private static Connection conn ; private BufferedMutator bufMut ; private Table hTable ; private Admin admin ; private HTableDescriptor desc ; private HColumnDescriptor hcd1 ; private HColumnDescriptor hcd2 ; private FileSystem fs ; private static final String family1 = "family1" ; private static final String family2 = "family2" ; private static final String qf1 = "qualifier1" ; private static final String qf2 = "qualifier2" ; private static byte [ ] KEYS = Bytes . toBytes ( "012" ) ; private static int regionNum = TestMobCompactor . KEYS . length ; private static int delRowNum = 1 ; private static int delCellNum = 6 ; private static int cellNumPerRow = 3 ; private static int rowNumPerFile = 2 ; private static ThreadPoolExecutor pool ; @ BeforeClass public static void setUpBeforeClass ( ) throws Exception { } @ AfterClass public static void tearDownAfterClass ( ) throws Exception { } @ Before public void setUp ( ) throws Exception { } @ After public void tearDown ( ) throws Exception { } @ Test public void testCompactionWithoutDelFilesWithNamespace ( ) throws Exception { } @ Test public void testCompactionWithoutDelFiles ( ) throws Exception { } @ Test public void testCompactionWithoutDelFilesAndWithEncryption ( ) throws Exception { } @ Test public void testCompactionWithDelFiles ( ) throws Exception { } @ Test public void testCompactionWithDelFilesAndNotMergeAllFiles ( ) throws Exception { } @ Test public void testCompactionWithDelFilesAndWithSmallCompactionBatchSize ( ) throws Exception { } @ Test public void testCompactionWithHFileLink ( ) throws IOException , InterruptedException , ExecutionException { } @ Test public void testCompactionFromAdmin ( ) throws Exception { } @ Test public void testMajorCompactionFromAdmin ( ) throws Exception { } @ Test public void testScannerOnBulkLoadRefHFiles ( ) throws Exception { } @ Test public void testScannerAfterCompactions ( ) throws Exception { } private void waitUntilCompactionFinished ( TableName tableName ) throws IOException , InterruptedException { } private void waitUntilMobCompactionFinished ( TableName tableName ) throws IOException , InterruptedException { long finished = ( EnvironmentEdgeManager . currentTime ( ) ) + 60000 ; Map < String , String > props = Collections . emptyMap ( ) ; boolean state = admin . isProcedureFinished ( MOB_COMPACTION_PROCEDURE_SIGNATURE , tableName . getNameAsString ( ) , props ) ; while ( ( EnvironmentEdgeManager . currentTime ( ) ) < finished ) { if ( state ) { break ; } state = admin . isProcedureFinished ( MOB_COMPACTION_PROCEDURE_SIGNATURE , tableName . getNameAsString ( ) , props ) ; Thread . sleep ( 10 ) ; } <START_BUG> assertEquals ( NONE , state ) ; <END_BUG> } private int countMobRows ( final Table table ) throws IOException { } private int countMobCells ( final Table table ) throws IOException { } private int countFiles ( TableName tableName , boolean isMobFile , String familyName ) throws IOException { } private boolean verifyEncryption ( TableName tableName , String familyName ) throws IOException { } private int countHFileLinks ( String familyName ) throws IOException { } private int countLargeFiles ( int size , String familyName ) throws IOException { } private void loadData ( Admin admin , BufferedMutator table , TableName tableName , int fileNum , int rowNumPerFile ) throws IOException , InterruptedException { } private void loadData ( Admin admin , BufferedMutator table , TableName tableName , Put [ ] puts ) throws IOException { } private void createDelFile ( ) throws IOException , InterruptedException { } private byte [ ] makeDummyData ( int size ) { } private byte [ ] [ ] getSplitKeys ( ) { } private static ThreadPoolExecutor createThreadPool ( Configuration conf ) { } private void assertRefFileNameEqual ( String familyName ) throws IOException { } private void resetConf ( ) { } private void setLongConf ( String key , long value ) { } private void setIntConf ( String key , int value ) { } private void compact ( TableName tableName , HColumnDescriptor hcd ) throws IOException , InterruptedException , ExecutionException { } }

Fix:
assertEquals ( true , state ) ;