@Test
    public void testNotifyLoggedOffClean() {
        long timeout = 200;
        try {
            final Server server;
            server = new Server(PORT);
            ServerConnectionHandlerThread.serverModel = new ServerModel();
            Thread t = new Thread(new Runnable() {
                @Override
                public void run() {
                    server.serve();
                }

            });
            t.start();

            String username1 = "dennis";
            String username2 = "adorne";
            Socket socket1 = new Socket(HOST, PORT);
            Thread.sleep(timeout);
            Socket socket2 = new Socket(HOST, PORT);

            BufferedReader in = new BufferedReader(new InputStreamReader(
                    socket1.getInputStream()));

            ClientModel clientModel1 = new ClientModel(socket1);
            ClientModel clientModel2 = new ClientModel(socket2);

            clientModel1.requestUser(username1);
            Thread.sleep(timeout);

            clientModel2.requestUser(username2);
            Thread.sleep(timeout);

            
            // Now that we're logged in, log out. 
            clientModel2.releaseUser();

            // check for the response....
            int i = 0;
            while (i < 10) {
                String response = in.readLine();

                // we got the response!
                if (response
                        .contains(Protocol.CLIENT_USERS_LOGGED_IN_NOTIFICATION)
                        && !response.contains(username2)) {
                    assert true;
                    break;
                }
                i++;
            }

            // if we didn't get the response in 10 hello updates then
            // we never will (due to HELLO msg rate)
            if (i == 10) {
                assert false;
            }

            server.stop();
            t.stop();

            Thread.sleep(timeout);

        } catch (Exception e) {
            System.out.println(e.toString());
            assert false;
        }
    }