@Before
public void setUp() throws Exception {
Configuration configuration = new Configuration();
TCPController controller = new TCPController(configuration);
this.selectorManager = new SelectorManager(1, controller, configuration);
this.selectorManager.start();
this.reactor = this.selectorManager.getReactorByIndex(0);
controller.setSessionTimeout(1000);
controller.getConfiguration().setSessionIdleTimeout(1000);
}