awaitConnectionHandlerTermination();
checkServerExceptions("End of input");
prepareServerConnection();
// Test shutdown server
String responseString = new ShutdownServerRequest().performAndGetResponse();
HashMap<String, Object> responseObject = readJsonObject(responseString);
assertTrue(responseObject.containsKey("error") == false);
shutdownSocketOutput(socket);
genieServer.awaitTerminationOfActiveConnectionHandlers();
assertTrue(genieServer.serverSocket.isClosed());