@Test
public void execute_open_events() throws InterruptedException {

    // prepare
    executor = new OrderedHandlerExecutor(1, 1);
    IoSession session = mock(IoSession.class);
    when(session.getId()).thenReturn(12345L);
    Event evt = mock(Event.class);
    when(evt.getSession()).thenReturn(session);
    // run
    executor.execute(evt);
    // verify
    verify(session).getId();
    verify(evt).getSession();
    Thread.sleep(200);
    verify(evt).visit(any(EventVisitor.class));
    verifyNoMoreInteractions(evt, session);
}