@Test
public void updatePolicyTest() {

    Response response = target().path("policies/" + encode(policyId.stringValue())).request().put(Entity.json(json));
    assertEquals(response.getStatus(), 200);
    verify(policyManager).createPolicy(any(PolicyType.class));
    verify(policyManager).updatePolicy(policy);
}