@Test
void testPrepareRoutingAssertionCertificateIds() {

    bundle.putAllTrustedCerts(ImmutableMap.of("fake-cert-1", createTrustedCertWithAnnotation(AnnotationType.BUNDLE_HINTS, "2cd473fe16d98cd6b9348ffb404517bc")));
    bundle.putAllTrustedCerts(ImmutableMap.of("fake-cert-2", createTrustedCertWithAnnotation(AnnotationType.BUNDLE_HINTS, "28be78b936aa61bc75bd0df2089789cd")));
    Element httpRoutingAssertionElement = createHttpRoutingAssertionWithCertNames(document);
    policyBuilderContext = new PolicyBuilderContext("path.xml", document, bundle, new IdGenerator());
    policyBuilderContext.withPolicy(policy);
    httpRoutingAssertionBuilder.buildAssertionElement(httpRoutingAssertionElement, policyBuilderContext);
    final Element trustedCertIDElement = getSingleChildElement(httpRoutingAssertionElement, TLS_TRUSTED_CERT_IDS, true);
    assertNotNull(trustedCertIDElement);
    assertEquals(2, trustedCertIDElement.getChildNodes().getLength());
    assertEquals("2cd473fe16d98cd6b9348ffb404517bc", trustedCertIDElement.getChildNodes().item(0).getAttributes().getNamedItem(GOID_VALUE).getTextContent());
    assertEquals("28be78b936aa61bc75bd0df2089789cd", trustedCertIDElement.getChildNodes().item(1).getAttributes().getNamedItem(GOID_VALUE).getTextContent());
}