@Test
void testHasRoutingWithRoutingAssertion() {

    Document doc = DocumentTools.INSTANCE.getDocumentBuilder().newDocument();
    Bundle bundle = new Bundle();
    Folder f1 = new Folder();
    f1.setId(TEST_FOLDER_1);
    f1.setName(TEST_FOLDER_1);
    f1.setPath(TEST_FOLDER_1);
    bundle.getFolders().put(TEST_FOLDER_1, f1);
    loader.load(bundle, createPolicyBundleXml(doc, TEST_POLICY_ID, TEST_POLICY_NAME,
            PolicyType.SERVICE_OPERATION.getType(), TEST_FOLDER_1, TEST_POLICY_XML_WITH_ROUTING, null, true));
    assertFalse(bundle.getPolicies().isEmpty());
    assertEquals(1, bundle.getPolicies().size());
    String path = PathUtils.unixPath(TEST_FOLDER_1, TEST_POLICY_NAME);
    Policy policy = bundle.getPolicies().get(path);
    assertNotNull(policy);
    assertEquals(TEST_POLICY_ID, policy.getId());
    assertEquals(TEST_POLICY_NAME, policy.getName());
    assertEquals(path, policy.getPath());
    assertEquals(TEST_GUID, policy.getGuid());
    assertEquals(f1, policy.getParentFolder());
    assertTrue(policy.isHasRouting());
}