String oldPolicyPath = newPolicy.getPath();
assertEquals(oldPolicyPath, "/policies/policy.xml");
assertTrue(registry.resourceExists("/policies/policy.xml"));
newPolicy.setName("my-policy.xml");
policyManager.updatePolicy(newPolicy);
assertEquals("/policies/my-policy.xml", newPolicy.getPath());
assertFalse(registry.resourceExists("/policies/policy.xml"));
// doing an update without changing anything.