Logger root = Logger.getRootLogger();
boolean rootIsConfigured = root.getAllAppenders().hasMoreElements();
assertTrue(rootIsConfigured);
Enumeration e = root.getAllAppenders();
Appender appender = (Appender) e.nextElement();
assertEquals(appender.getName(), "D3");