@Test
void testPrepareEncapsulatedAssertionMissingPolicyPathWithNoOp() throws DocumentParseException {

    Element encapsulatedAssertionElement = createEncapsulatedAssertionElement(document, "my-encass", "ad620794-a27f-4d94-85b7-669ba838367b");
    document.appendChild(encapsulatedAssertionElement);
    Element noOpElement = document.createElement(NO_OP_IF_CONFIG_MISSING);
    encapsulatedAssertionElement.appendChild(noOpElement);
    noOpElement.setAttribute(EncapsulatedAssertionBuilder.BOOLEAN_VALUE, "true");
    policyBuilderContext = new PolicyBuilderContext("path.xml", document, bundle, new IdGenerator());
    policyBuilderContext.withPolicy(policy);
    policyBuilderContext.withAnnotatedBundle(null);
    encapsulatedAssertionBuilder.buildAssertionElement(encapsulatedAssertionElement, policyBuilderContext);
    Element nameElement = getSingleElement(encapsulatedAssertionElement, ENCAPSULATED_ASSERTION_CONFIG_NAME);
    assertEquals("my-encass", nameElement.getAttribute(PolicyEntityBuilder.STRING_VALUE));
    Element guidElement = getSingleElement(encapsulatedAssertionElement, ENCAPSULATED_ASSERTION_CONFIG_GUID);
    assertEquals("ad620794-a27f-4d94-85b7-669ba838367b", guidElement.getAttribute(PolicyEntityBuilder.STRING_VALUE));
}