### Question:
Log4jConfigurator implements Log4jConfiguratorMXBean { @Override public String getLogLevel(String logger) { String level = "unavailable"; if (StringUtils.isNotBlank(logger)) { Logger log = getLogger(logger); if (log != null) { level = log.getLevel().toString(); } } return level; }  @Override List<String> getLoggers(); @Override String getLogLevel(String logger); @Override void setLogLevel(String logger, String level);  }### Answer:
@Test public void testGetLogLevel() throws Exception { doReturn(logger("a", "INFO")).when(sut).getLogger("a"); assertEquals(sut.getLogLevel("a"), "INFO"); }