	@Test
	public void testDistance() throws UnknownHostException{

		int i=0;
		for(Host host:hosts){			
			policy.onUp(host);
			if(i<=2){
				// dc1 is local
				assertEquals(policy.distance(host),HostDistance.LOCAL);
			}else{
				assertTrue(policy.distance(host).equals(HostDistance.REMOTE) || policy.distance(host).equals(HostDistance.IGNORED));
			}
			i++;			
		}
	}