@Test
    public void testWrongUser() throws Exception{
    	AccessControlServer server = new AccessControlServer(1935);
        server.start();
        SpotStub spot = new SpotStub("139",1935);
        spot.start();
        SpotStub security = new SpotStub("security",1935);
        security.start();
        
        sleep(100);
        
        security.resetAnswer();
        security.setReListen();
        spot.setWrong();
        
        sleep(100);
        
        String ans = "";
        int x = 0;
        while(x != -1 && x<=50){ //if no response is received in 10 seconds, test is deemed failed.
            x++;
            ans = security.getAnswer();
            sleep(100);
            if(ans != ""){
            	if(ans.equals("wrong")){
            		x = -1;
            	}
            	else{
            		spot.setWrong();
            		sleep(100);
            		security.resetAnswer();
                    security.setReListen();
                    
            	}
            }
        }
        assertEquals("wrong",ans);
    }