@Test
    public void clientConnectionTest() {
        Socket socket = new Socket();
        InetSocketAddress endPoint;
        try {
            endPoint = new InetSocketAddress(InetAddress.getLocalHost().getHostAddress(), 9000);
            if (!endPoint.isUnresolved()) {
                assertFalse(endPoint.isUnresolved());
                try {
                    socket.connect(endPoint, 2000);
                } catch (IOException e) {
                    System.err.println("NOTE: Server must be running on port 9000, for ServerTest.clientConnectionTest to run\n");
                    e.printStackTrace();
                    fail();
                }
                assertTrue(socket.isConnected());
                assertEquals(socket.getPort(), 9000);
            } else {
                new Exception("End Point Unresolved").printStackTrace();
            }
        } catch (UnknownHostException e) {
            e.printStackTrace();
            fail();
        }
    }