    @Test
    public void testShutdown() {


        class MyService {

            boolean called;

            @QueueCallback(QueueCallbackType.SHUTDOWN)
            private void shutdown() {


                called = true;
            }

        }

        MyService myService = new MyService();

        final BoonServiceMethodCallHandler boonServiceMethodCallHandler = new BoonServiceMethodCallHandler(true);
        boonServiceMethodCallHandler.init(myService, "", "", new SendQueue<Response<Object>>() {

        });

        boonServiceMethodCallHandler.init();
        boonServiceMethodCallHandler.limit();
        boonServiceMethodCallHandler.empty();
        boonServiceMethodCallHandler.idle();
        boonServiceMethodCallHandler.startBatch();
        assertFalse(myService.called);


        boonServiceMethodCallHandler.shutdown();
        assertTrue(myService.called);
    }