@Test
    public void testSetQueueTimeoutError() {
        LOGGER.log(Level.INFO, "----- STARTING TEST testSetQueueTimeoutError -----");
        String client_hash = "";
        String client_hash2 = "";
        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);
        waitMessageQueueAddNotEmpty(server2);
        waitMessageQueueState(server2, client_hash, MessageQueue.RUNNING);
        try {
            server2.setQueueTimeoutError(5);
        } catch (InvalidArgumentException e) {
            exception = true;
        }
        Assert.assertFalse(exception, "Exception found");
        Assert.assertEquals(server2.getQueueTimeoutError(), 5, "Value of queue_timeout_error not set to 5 on Server");
        Assert.assertEquals(server2.getQueueTimeoutErrorIndividual(client_hash), 5, "Value of timeout_error not set to 5 on SocketThread");
        try {
            client_hash2 = server2.addSocket("127.0.0.1", port);
        } catch (IOException | TimeoutException e) {
            exception = true;
        }
        waitSocketThreadState(server2, client_hash2, SocketThread.CONFIRMED);
        waitMessageQueueState(server2, client_hash2, MessageQueue.RUNNING);
        Assert.assertFalse(exception, "Exception found");
        Assert.assertEquals(server2.getQueueTimeoutErrorIndividual(client_hash2), 5, "Value of timeout_error not set to 5 on SocketThread");
        LOGGER.log(Level.INFO, "----- TEST testSetQueueTimeoutError COMPLETED -----");
    }