public void testAcceptAndRemove() {
		
		VehicleAcceptor r = new VehicleAcceptorObj();
		
		TimeServer ts = new TimeServerLinked();
		Car[] cars = new Car[10];
		for	(int i=0;i<10;i++) {
			
			cars[i] = (Car)VehicleFactory.newCar(ts, r);
			r.accept(cars[i]);
		}
		
		Assert.assertTrue(r.getCars().size() == 10);
		
		for	(int i=0;i<10;i++) {
			r.remove(cars[i]);
		}
		
		Assert.assertTrue(r.getCars().size() == 0);
		
		try {
			r.accept(null);
			Assert.fail();
		} catch(Exception e) {
			
		}
	}