@Test
    public void testSetListenThreadServerOnSamePort() {
        LOGGER.log(Level.INFO, "----- STARTING TEST testSetListenThreadServerOnSamePort -----");
        boolean flag1 = false;
        boolean flag2 = false;
        if (server1.getState() == Server.LISTEN) {
            flag1 = true;
        }
        if (flag1) {
            try {
                server1.setListenThread();
            } catch (IOException | ServerSocketCloseException | TimeoutException e) {
                exception = true;
            }
            if (server1.getState() == Server.LISTEN) {
                flag2 = true;
            }
        }
        Assert.assertFalse(exception, "Exception found");
        Assert.assertTrue(flag2, "Server's state has not been set as listen Server. listen_thread may have not been created correctly. Server state is " + Integer.toString(server2.getState()));
        LOGGER.log(Level.INFO, "----- TEST testSetListenThreadServerOnSamePort COMPLETED -----");
    }