BalanaPolicyManager implements XACMLPolicyManager { @Override public XACMLPolicy createPolicy(PolicyType policyType) { return new BalanaPolicy(policyType, vf); }  @Override XACMLPolicy createPolicy(PolicyType policyType); @Override Resource addPolicy(XACMLPolicy policy); @Override List<XACMLPolicy> getPolicies(PolicyQueryParams params); @Override Optional<XACMLPolicy> getPolicy(Resource policyId); @Override void updatePolicy(XACMLPolicy newPolicy); @Override void deletePolicy(Resource policyId); @Override Repository getRepository();  }
@Test public void createPolicyTest() { XACMLPolicy policy = manager.createPolicy(policyType); assertTrue(policy instanceof BalanaPolicy); assertEquals(policyId, policy.getId()); assertEquals(policyType, policy.getJaxbPolicy()); }