MavenEchoOutput implements EchoOutput { @Override public void warning(String content) { wrappedLog.warn(content); } MavenEchoOutput(Log wrappedLog); @Override void fail(String content); @Override void error(String content); @Override void warning(String content); @Override void info(String content); @Override void debug(String content);  }
@Test public void warnShouldOutputWarnLevel() { mavenEchoOutput.warning("Gurka"); verify(logMock).warn("Gurka"); verifyNoMoreInteractions(logMock); }