svc.addPolicyRequirement(POLICY_BAR);
Assert.assertTrue(svc.hasPolicyRequirement(POLICY_FOO));
Assert.assertTrue(svc.hasPolicyRequirement(POLICY_BAR));
// Test reference policy
ComponentReferenceModel ref = new V1ComponentReferenceModel(SwitchYardNamespace.DEFAULT.uri());
ref.addPolicyRequirement(POLICY_BAR);
Assert.assertTrue(ref.hasPolicyRequirement(POLICY_BAR));
Assert.assertFalse(ref.hasPolicyRequirement(POLICY_FOO));
svc.addPolicyRequirement(POLICY_FOO);
Assert.assertTrue(svc.hasPolicyRequirement(POLICY_FOO));
}