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

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

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