SocketAddress socketAddress = new InetSocketAddress(PORT);
AsyncServer server = new AsyncServer(dispatcher, socketAddress);
server.start();
// start client
AsyncClient client = new AsyncClient("localhost", PORT);
// check
assertEquals(AsyncServer.MESSAGE, client.getReceivedMessage());
}