@Test
public void testMessageBeforeLogon() throws Exception {

    IoSession mockIoSession = mock(IoSession.class);
    stub(mockIoSession.getAttribute("QF_SESSION")).toReturn(null);
    EventHandlingStrategy mockEventHandlingStrategy = mock(EventHandlingStrategy.class);
    HashMap<SessionID, Session> acceptorSessions = new HashMap<>();
    AcceptorIoHandler handler = new AcceptorIoHandler(createSessionProvider(acceptorSessions),
            new NetworkingOptions(new Properties()), mockEventHandlingStrategy);
    handler.processMessage(mockIoSession, new Logout());
    verify(mockIoSession).getAttribute("QF_SESSION");
    verifyNoMoreInteractions(mockEventHandlingStrategy);
}