@Test
public void testMultilineCmakeErrorInFileWithoutLineNumberOrColumn() {

  String prefix = "CMake Error: Error in cmake code at\n";
  String filePath = sourceFile.getAbsolutePath();
  String fileAndLineNumber = String.format(Locale.getDefault(), "%s::\n", filePath);
  String err = prefix + fileAndLineNumber;
  BuildOutputInstantReader reader = new TestBuildOutputInstantReader(err);
  ArgumentCaptor<BuildEvent> captor = ArgumentCaptor.forClass(BuildEvent.class);
  assertThat(parser.parse(reader.readLine(), reader, messageConsumer)).isTrue();
  verify(messageConsumer).accept(captor.capture());
  assertThat(captor.getAllValues()).hasSize(1);
  verifyFileMessageEvent(captor.getAllValues().get(0), filePath, "CMake errors", MessageEvent.Kind.ERROR, 0, 0);
}