//obvious, right? This needs to be done for the alert subsystem to become aware of the new def
LookupUtil.getAlertConditionCacheManager().reloadAllCaches();
ResourceCriteria crit = new ResourceCriteria();
crit.addFilterId(newResource.getId());
crit.fetchCurrentAvailability(true);
Resource fromDb = resourceManager.findResourcesByCriteria(getOverlord(), crit).get(0);
assertEquals(AvailabilityType.UNKNOWN, fromDb.getCurrentAvailability().getAvailabilityType());
//ask for the live avail - the mock agent response will return "DOWN" the first time