@Test
public void testParseModernStreamContextLines() throws IOException {

    List<CompilerMessage> messages = JDTCompiler.parseModernStream(createOutputForLines(
            "prologue (must be discarded)", "1. ERROR in foo bar (at line 3) ", "message line1", "message line2"));
    assertEquals(1, messages.size());
    CompilerMessage error = messages.get(0);
    assertEquals(EOL + "message line1" + EOL + "message line2", error.getMessage());
}