@Test
    public void testSendStatus() throws Exception{
        AccessControlServer server = new AccessControlServer(1926);
        server.start();
        
        SpotStub security = new SpotStub("Security",1926);
        security.start();
        
        String ans = "";
        int x = 0;
        while(x == 0){
            ans = security.getAnswer();
            //sleep(100);
            if(ans != ""){
                
                x = 1;
            }
        }
        assertEquals(ans,"successful connection!");
        
        security.resetAnswer();
        security.setReListen();
        server.sendStatus();
        
        ans = "";
        x = 0;
        while(x == 0){
            ans = security.getAnswer();
            //sleep(100);
            if(ans != ""){
                
                x = 1;
            }
        }
        assertEquals(ans,"4   Parking #312  Type:Student     Floor:3  Direction:North Status:Free  Connection:Off");
    }