@Test
void testPrepareIncludeAssertionEncodedPath() throws DocumentParseException {

    String policyPath = "my/policy-_¯-¯_/_¯-¯_-path.xml";
    Policy policy = new Policy();
    policy.setGuid("123-abc-567");
    bundle.getPolicies().put(policyPath, policy);
    AnnotatedBundle annotatedBundle = new AnnotatedBundle(bundle, null, null);
    annotatedBundle.putAllPolicies(bundle.getPolicies());
    Element includeAssertionElement = createIncludeAssertionElement(document, policyPath);
    document.appendChild(includeAssertionElement);
    policyBuilderContext = new PolicyBuilderContext("path.xml", document, bundle, new IdGenerator());
    policyBuilderContext.withPolicy(policy);
    policyBuilderContext.withAnnotatedBundle(annotatedBundle);
    includeAssertionBuilder.buildAssertionElement(includeAssertionElement, policyBuilderContext);
    Element policyGuidElement = getSingleElement(includeAssertionElement, POLICY_GUID);
    assertEquals(policy.getGuid(), policyGuidElement.getAttribute(PolicyEntityBuilder.STRING_VALUE));
    assertFalse(policyGuidElement.hasAttribute(IncludeAssertionBuilder.POLICY_PATH));
}