@Test
public void testParseModernStreamIgnoreSeparatorLines() throws IOException {

    List<CompilerMessage> messages = JDTCompiler.parseModernStream(createOutputForLines(//
            "----------", //
            "1. ERROR in foo bar (at line 3) ", //
            "a context line", //
            "----------", //
            "", //
            "2. WARNING in test2 (at line 4)", //
            "second context line", //
            "----------"));
    assertEquals(2, messages.size());
    CompilerMessage error = messages.get(0);
    assertTrue(error.isError());
    assertEquals("foo bar", error.getFile());
    assertEquals(3, error.getStartLine());
    assertEquals(EOL + "a context line", error.getMessage());
    error = messages.get(1);
    assertFalse(error.isError());
    assertEquals("test2", error.getFile());
    assertEquals(4, error.getStartLine());
    assertEquals(EOL + "second context line", error.getMessage());
}