    @Test
    public void testSkipDefaults() {

        ErrorHandler
                .create()
                .on(FooException.class, (throwable, handler) -> {
                    actionDelegateMock.action1();
                })
                .handle(new FooException("foo error"));

        Mockito.verify(actionDelegateMock, times(1)).action1();
        Mockito.verify(actionDelegateMock, times(1)).defaultAction1();

        reset(actionDelegateMock);

        ErrorHandler
                .create()
                .on(FooException.class, (throwable, handler) -> {
                    actionDelegateMock.action1();
                    handler.skipDefaults();
                })
                .handle(new FooException("foo error"));

        Mockito.verify(actionDelegateMock, times(1)).action1();
        Mockito.verify(actionDelegateMock, never()).defaultAction1();
    }