@Test
public void errorStop() {

  Exception e = createException("invalid operation", "analysis failed");
  doThrow(e).when(sonarLint).stop();
  assertThat(main.run()).isEqualTo(Main.ERROR);
  assertThat(getLogs(err)).contains("invalid operation");
}