@Test
public void testParseModernStreamWarningNoNumber() throws IOException {

    List<CompilerMessage> messages = JDTCompiler
            .parseModernStream(createOutputForLines("WARNING in foo (at line 4)"));
    assertEquals(1, messages.size());
    CompilerMessage message = messages.get(0);
    assertFalse(message.isError());
    assertEquals("foo", message.getFile());
    assertEquals(4, message.getStartLine());
}