responseWithKeystoneAccess,
authenticatedGET().method("GET").endpoint(endpoint).build(),
HttpResponse.builder().statusCode(201).payload(payloadFromResource("/autoscale_policy_get_response.json")).build()
).getPolicyApiForZoneAndGroup("DFW", "groupId1");
ScalingPolicyResponse scalingPolicyResponse = api.get("policyId");
assertNotNull(scalingPolicyResponse);
assertEquals(scalingPolicyResponse.getCooldown(), 150);
assertEquals(scalingPolicyResponse.getId(), "policyId");
assertEquals(scalingPolicyResponse.getName(), "scale up by one server");
assertEquals(scalingPolicyResponse.getTarget(), "1");
assertEquals(scalingPolicyResponse.getLinks().size(), 1);
}