class MavenEchoOutput implements EchoOutput {

    @Override
    public void error(String content) {
        wrappedLog.error(content);
    }

}

class MavenEchoOutputTest {

    private final Log logMock;
    private MavenEchoOutput mavenEchoOutput;
    @Rule
    public final ExpectedException expectedException;

    @Test
    public void errorShouldOutputErrorLevel() {

        mavenEchoOutput.error("Gurka");

        verify(logMock).error("Gurka");
        verifyNoMoreInteractions(logMock);
    }

}