@Test
    public void explicitly_provided_bucket_space_is_propagated_to_visitor_commands() {
        MockComponents mc = createDefaultMock("");
        mc.params.setBucketSpace("upside down");
        mc.visitorSession.start();
        mc.executor.expectAndProcessTasks(1);
        CreateVisitorMessage cmd = (CreateVisitorMessage)mc.sender.getAndRemoveMessage(0);
        assertEquals("upside down", cmd.getBucketSpace());
    }
To avoid race conditions during session closure we must ensure that no further
inbound message callbacks will be executed once a session has been aborted
(be it explicitly or implicitly via a fatal failure or timeout).
documentapi/src/test/java/com/yahoo/documentapi/messagebus/MessageBusVisitorSessionTestCase.java