### Question:
PolicyUtils { public static Policy createBDocSignaturePolicy() { Policy signaturePolicy = new Policy(); signaturePolicy.setId("urn:oid:" + XadesSignatureValidator.TM_POLICY); signaturePolicy.setDigestValue(Base64.decodeBase64("7pudpH4eXlguSZY2e/pNbKzGsq+fu signaturePolicy.setQualifier("OIDAsURN"); signaturePolicy.setDigestAlgorithm(SHA256); signaturePolicy.setSpuri("https: return signaturePolicy; }  static Policy createBDocSignaturePolicy(); static boolean areAllPolicyValuesDefined(Policy policy);  }### Answer:
@Test public void createBDocSignaturePolicy() { Policy policy = PolicyUtils.createBDocSignaturePolicy(); assertEquals("urn:oid:" + XadesSignatureValidator.TM_POLICY, policy.getId()); assertEquals("OIDAsURN", policy.getQualifier()); assertEquals(DigestAlgorithm.SHA256, policy.getDigestAlgorithm()); assertEquals("https: assertThat(Base64.decodeBase64("7pudpH4eXlguSZY2e/pNbKzGsq+fu }