@Test
void testPrepareIncludeAssertionPolicyInMultipleDependentBundle() {

    String policyPath = "my/policy/path.xml";
    Policy policy = new Policy();
    policy.setGuid("123-abc-567");
    Bundle dependentBundle = new Bundle();
    dependentBundle.getPolicies().put(policyPath, policy);
    bundle.getDependencies().add(dependentBundle);
    Bundle dependentBundle2 = new Bundle();
    dependentBundle2.getPolicies().put(policyPath, policy);
    bundle.getDependencies().add(dependentBundle2);
    Element includeAssertionElement = createIncludeAssertionElement(document, policyPath);
    document.appendChild(includeAssertionElement);
    policyBuilderContext = new PolicyBuilderContext("path.xml", document, bundle, new IdGenerator());
    policyBuilderContext.withPolicy(policy);
    policyBuilderContext.withAnnotatedBundle(new AnnotatedBundle(bundle, null, null));
    assertThrows(EntityBuilderException.class, () -> includeAssertionBuilder.buildAssertionElement(includeAssertionElement, policyBuilderContext));
}