assertNotNull(policyId);
boolean result = policyApi.update(policyId, updated);
assertTrue(result);
ScalingPolicyResponse updatedResponse = policyApi.get(policyId);
assertNotNull(updatedResponse.getId());
assertEquals(updatedResponse.getCooldown(), 3);
assertEquals(updatedResponse.getTarget(), "2");
assertEquals(updatedResponse.getTargetType(), ScalingPolicyTargetType.PERCENT_CHANGE);
assertEquals(updatedResponse.getType(), ScalingPolicyType.WEBHOOK);
assertEquals(updatedResponse.getName(), "scale up by 2 PERCENT server");
}
}