protected void compileAndAssertNoMessage(String configurationClass) throws IOException {
   List<Diagnostic<? extends JavaFileObject>> diagnostics = compileClass(configurationClass);
   DiagnosticsAssert.assertNoCompilerMessage(diagnostics);
 }
 protected void compileAndAssert(
     String javaFile, Diagnostic.Kind expectedKind, long expectedLineNumber) throws IOException {
   List<Diagnostic<? extends JavaFileObject>> diagnostics = compileClass(javaFile);
   DiagnosticsAssert.assertContainsSingleMessage(expectedKind, expectedLineNumber, diagnostics);
 }