StdOutLogOutput implements LogOutput { @Override public void log(String formattedMessage, org.sonarsource.scanner.api.LogOutput.Level level) { stdOut.println(level.name() + ": " + formattedMessage); } StdOutLogOutput();   StdOutLogOutput(PrintStream stdOut); @Override void log(String formattedMessage, org.sonarsource.scanner.api.LogOutput.Level level);  }
@Test public void test() { logOutput.log("msg", Level.INFO); verify(stdOut).println("INFO: msg"); }