@Test
    public void testLocalDataAndControlDestinations() {
        MockComponentsBuilder builder = new MockComponentsBuilder();
        builder.receiver.setConnectionSpec("foo/bar");
        builder.params = createVisitorParameters("id.user==1234");
        MockComponents mc = builder.createMockComponents();

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

        CreateVisitorMessage msg = (CreateVisitorMessage)mc.sender.getAndRemoveMessage(0);
        // Local connection spec will be used for both control and data destinations
        assertEquals("foo/bar", msg.getControlDestination());
        assertEquals("foo/bar", msg.getDataDestination());
    }
Test assembly of message traces in session. Trace level propagation
is already tested elsewhere.
documentapi/src/test/java/com/yahoo/documentapi/messagebus/MessageBusVisitorSessionTestCase.java