IoServiceListener listener = EasyMock.createStrictMock(IoServiceListener.class);
// Creating a session should activate a service automatically.
listener.serviceActivated(connector);
listener.sessionCreated(session);
handler.sessionCreated(session);
handler.sessionOpened(session);
EasyMock.replay(listener);
EasyMock.replay(handler);