@Test(expected = RuntimeException.class)
public void doDestroyException() throws Exception {

    AbstractFilter filter = initFilter(new AbstractFilter() {
        @Override
        protected void doDestroy() throws Exception {
            throw new Exception();
        }
    });
    filter.destroy();
}