@Test
    public void testUniqueVisitorNames() {
        MockComponents mc = createDefaultMock();
        mc.visitorSession.start();
        mc.executor.expectAndProcessTasks(1);
        assertEquals(2, mc.sender.getMessageCount());

        CreateVisitorMessage msg1 = (CreateVisitorMessage)mc.sender.getAndRemoveMessage(0);
        CreateVisitorMessage msg2 = (CreateVisitorMessage)mc.sender.getAndRemoveMessage(0);
        assert(!msg1.getInstanceId().equals(msg2.getInstanceId()));
    }
Test that different visitors within the same session get different
names.
documentapi/src/test/java/com/yahoo/documentapi/messagebus/MessageBusVisitorSessionTestCase.java