@Test
public void createPolicyTest() {

    Response response = target().path("policies").request().post(Entity.json(json));
    assertEquals(response.getStatus(), 201);
    assertEquals(response.readEntity(String.class), policyId.stringValue());
    verify(policyManager).createPolicy(any(PolicyType.class));
    verify(policyManager).addPolicy(policy);
}