Wouldn't it be simpler to remove line 50-68 with 

        assertEquals(WRONG_NUMBER_OF_WARNINGS_DETECTED, 12, results.size());

and put that line right after the results declaration?