@Test
public void parseJavaOutput2() throws IOException {

  createTempFile(".java");
  writeToFile("public class Test {",
              "  public static void main(String[] args) {",
              "    System.out.println();asd");
  StringBuilder err = new StringBuilder();
  err.append(sourceFilePath).append(":3: error: ").append("not a statement").append(NEWLINE)
     .append("    System.out.println();asd").append(NEWLINE)
     .append("                         ^").append(NEWLINE);
  Collection<Message> messages = parser.parseGradleOutput(err.toString());
  assertHasCorrectErrorMessage(messages, "error: not a statement", 3, 26);
}