public boolean detachAppender(Appender<E> appender) {
        if (appender == null) {
            return false;
        }
        boolean result;
        result = appenderList.remove(appender);
        return result;
    }
@Test
    public void testDetachAppender() throws Exception {
        NOPAppender<TestEvent> ta = new NOPAppender<TestEvent>();
        ta.start();
        aai.addAppender(ta);
        NOPAppender<TestEvent> tab = new NOPAppender<TestEvent>();
        tab.setName("test");
        tab.start();
        aai.addAppender(tab);
        Assertions.assertTrue(aai.detachAppender(tab),"Appender not detached");
        Assertions.assertNull(aai.getAppender("test"), "Appender was not removed");
        Assertions.assertFalse(aai.detachAppender(tab), "Appender detach error");
    }