@Test
    public void testServerClientDisconnect() {
        LOGGER.log(Level.INFO, "----- STARTING TEST testServerClientDisconnect -----");
        String client_hash = "";
        String server_hash = "";
        try {
            server1.startThread();
        } catch (IOException | ServerSocketCloseException | FeatureNotUsedException e) {
            exception = true;
        }
        waitListenThreadStart(server1);
        try {
            client_hash = server2.addSocket("127.0.0.1");
        } catch (IOException | TimeoutException e) {
            exception = true;
        }
        waitSocketThreadAddNotEmpty(server2);
        waitSocketThreadState(server2, client_hash, SocketThread.CONFIRMED);
        waitSocketThreadAddNotEmpty(server1);
        server_hash = getServerLastSocketHash(server1);
        waitSocketThreadState(server1, server_hash, SocketThread.CONFIRMED);
        try {
            server2.close();
        } catch (IOException | ServerSocketCloseException | TimeoutException e) {
            exception = true;
        }
        waitServerState(server2, Server.CLOSED);
        waitSocketThreadRemoveEmpty(server1);
        if (server1.containsHash(server_hash) != true || server1.getSocketList().get(server_hash).getRun() == SocketThread.CLOSED) {
            server_hash = "disconnected";
        }
        Assert.assertFalse(exception, "Exception found");
        Assert.assertEquals(server_hash, "disconnected", "Connection not closed successfully");
        LOGGER.log(Level.INFO, "----- TEST testServerClientDisconnect COMPLETED -----");
    }