@Test
    public void testServerUseMessageQueueSend() {
        LOGGER.log(Level.INFO, "----- STARTING TEST testServerUseMessageQueueSend -----");
        String client_hash = "";
        String server_hash = "";
        try {
            server1.setUseMessageQueues(true);
        } catch (TimeoutException e) {
            exception = true;
        }
        try {
            server2.setUseMessageQueues(true);
        } catch (TimeoutException e) {
            exception = true;
        }
        try {
            server1.startThread();
        } catch (IOException | ServerSocketCloseException | FeatureNotUsedException e) {
            exception = true;
        }
        waitListenThreadStart(server1);
        try {
            client_hash = server2.addSocket("127.0.0.1", port);
        } 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);
        server2.sendMessage("TEST", client_hash);
        boolean loop = true;
        Timing new_timer = new Timing();
        while (loop) {
            if (server2.getQueueList().get(client_hash).getMessages().isEmpty() || new_timer.getTime() > 5000) {
                loop = false;
            }
        }
        Assert.assertFalse(exception, "Exception found");
        Assert.assertTrue(server2.getQueueList().get(client_hash).getMessages().isEmpty(), "Message was not sent through MessageQueue");
        LOGGER.log(Level.INFO, "----- TEST testServerUseMessageQueueSend COMPLETED -----");
    }