Created MockSocket and MockServerSocket to be able test ConnectionHandler.