@Test
    public void testControlHandlerWaitUntilDone() throws Exception {
        MockComponents mc = createDefaultMock();

        mc.visitorSession.start();
        mc.executor.expectAndProcessTasks(1);
        mc.controlHandler.resetMock();

        assertFalse(mc.visitorSession.waitUntilDone(1234)); // not completed
        assertEquals("waitUntilDone : 1234\n", mc.controlHandler.toString());
    }
Test that waitUntilDone on the session is forwarded to the control handler.
documentapi/src/test/java/com/yahoo/documentapi/messagebus/MessageBusVisitorSessionTestCase.java