SubutaiAppender extends AppenderSkeleton { public void dispose() { listeners.clear(); }  void dispose(); void addListener( SubutaiErrorEventListener listener ); void removeListener( SubutaiErrorEventListener listener ); @Override void close(); @Override boolean requiresLayout(); static final Level MIN_REPORT_LOG_LEVEL; }
@Test public void testDispose() throws Exception { subutaiAppender.dispose(); verify( listeners ).clear(); }