@Test
void testPrepareEncapsulatedAssertionMissingEncass() {

    Element encapsulatedAssertionElement = createEncapsulatedAssertionElement(document);
    document.appendChild(encapsulatedAssertionElement);
    policyBuilderContext = new PolicyBuilderContext("path.xml", document, bundle, new IdGenerator());
    policyBuilderContext.withPolicy(policy);
    policyBuilderContext.withAnnotatedBundle(null);
    EntityBuilderException exception = assertThrows(EntityBuilderException.class, () -> encapsulatedAssertionBuilder.buildAssertionElement(encapsulatedAssertionElement, policyBuilderContext));
    assertTrue(exception.getMessage().contains(TEST_ENCASS));
}