@Test
public void noFailuresInOutputWithOnlyWarnings() {

    String javacOutput = "warning: [options] bootstrap class path not set in conjunction with -source 1.7\n"
            + "Note: "
            + CLASS_FILE
            + " uses unchecked or unsafe operations.\n"
            + "Note: Recompile with -Xlint:unchecked for details.               \n"
            + "1 warning";
    JavacFailuresSupplier supplier = new JavacFailuresSupplier(new StringBuilder(javacOutput));
    assertThat(supplier.getFailures()).isEmpty();
}