loggerBuilder.expectError("Errors in '/mock/bad3.java'", null);
loggerBuilder.expectError("bad1 cannot be resolved to a type", null);
UnitTestTreeLogger testLogger = loggerBuilder.createLogger();
CompilationProblemReporter.logErrorTrace(testLogger, TreeLogger.ERROR, compilerContext, "bad6",
false);
testLogger.assertCorrectLogEntries();
// Check that validClasses is not mutated
assertEquals(knownValidClasses, validClasses);
// Check that units is mutated