@Test
    public void testControlHandlerInvocationNormal() {
        MockComponents mc = createDefaultMock("id.user=1234");
        assertEquals("reset\nsetSession\n", mc.controlHandler.toString());
        mc.controlHandler.resetMock();

        mc.visitorSession.start();
        mc.executor.expectAndProcessTasks(1);
        replyToCreateVisitor(mc.sender, (reply) -> {
            reply.setLastBucket(ProgressToken.FINISHED_BUCKET);
            VisitorStatistics stats = new VisitorStatistics();
            stats.setBucketsVisited(11);
            stats.setDocumentsReturned(22);
            reply.setVisitorStatistics(stats);
        });
        mc.executor.expectAndProcessTasks(1);
        assertEquals("onProgress : 0 active, 0 pending, 1 finished, 1 total\n" +
                "onVisitorStatistics : 11 buckets visited, 22 docs returned\n" +
                "onDone : SUCCESS - ''\n",
                mc.controlHandler.toString());
        assertTrue(mc.visitorSession.isDone());
    }
Test that using an id.user=foo selection only tries to visit a single
superbucket for that user.
documentapi/src/test/java/com/yahoo/documentapi/messagebus/MessageBusVisitorSessionTestCase.java