@Test
	public void testReserve() throws Exception{
		ThreadDriver thread = new ThreadDriver();
		thread.start();
		
		SpotStub stub = new SpotStub("312",3738);
		
		String ans = "";
		int x = 0;
		while(x != -1 && x < 100){ //if no response is received in 10 seconds, test is deemed failed.
            x++;
            stub.setReListen();
            sleep(100);
            ans = stub.getAnswer();
            sleep(100);
            if(ans.equals("reserve")){
                x = -1;
            }
            else{
            	System.out.println(ans);
            }
        }
        assertEquals("reserve",ans);
        stub.quit();
	}