BaseCommands implements CommandMarker { protected void error(String message) { logger.error(message); }    }
@Test public void testError() { mockBaseCommands.error("test"); assertThat(logger.getErrorMessages(), contains("test")); }