for (String zone : api.getConfiguredZones()) {
PolicyApi policyApi = api.getPolicyApiForZoneAndGroup(zone, created.get(zone).get(0).getId());
assertNotNull(policyApi);
ScalingPolicyResponse listResponse = policyApi.list().iterator().next();
ScalingPolicyResponse getResponse = policyApi.get(listResponse.getId());
assertEquals(listResponse.getId(), getResponse.getId());
assertEquals(listResponse.getName(), getResponse.getName());
assertEquals(listResponse.getCooldown(), getResponse.getCooldown());
assertEquals(listResponse.getLinks(), getResponse.getLinks());
assertEquals(listResponse.getTarget(), getResponse.getTarget());
assertEquals(listResponse.getTargetType(), getResponse.getTargetType());
assertEquals(listResponse.getType(), getResponse.getType());
}
}