@Test
public void twoFailuresInOutputWithNoWarnings() {

    String javacOutput = CLASS_FILE
            + ":"
            + LINE_1
            + ": error: "
            + ERROR_1
            + DETAIL_1
            + "\n"
            + CLASS_FILE
            + ":"
            + LINE_2
            + ": error: "
            + ERROR_2
            + DETAIL_2
            + "\n";
    JavacFailuresSupplier supplier = new JavacFailuresSupplier(new StringBuilder(javacOutput));
    assertThat(supplier.getFailures())
            .containsExactly(
                    new Failure.Builder()
                            .file(new File(CLASS_FILE))
                            .line(LINE_1)
                            .severity("ERROR")
                            .message(ERROR_1)
                            .details(DETAIL_1)
                            .build(),
                    new Failure.Builder()
                            .file(new File(CLASS_FILE))
                            .line(12)
                            .severity("ERROR")
                            .message(ERROR_2)
                            .details(DETAIL_2)
                            .build());
}