BaseCommands implements CommandMarker { protected void warn(String message) { logger.warn(message); }    }
@Test public void testWarn() { mockBaseCommands.warn("test"); assertThat(logger.getWarnMessages(), contains("test")); }