@Test
public void testParseModernStreamErrorWithoutLine() throws IOException {

    List<CompilerMessage> messages = JDTCompiler.parseModernStream(createOutputForLines("1. ERROR in baz"));
    assertEquals(1, messages.size());
    CompilerMessage message = messages.get(0);
    assertTrue(message.isError());
    assertEquals("baz", message.getFile());
    assertEquals(-1, message.getStartLine());
}