@Test
void load() {

    PolicyBackedServiceLoader loader = new PolicyBackedServiceLoader();
    Bundle bundle = new Bundle();
    loader.load(bundle, createXml(
            DocumentTools.INSTANCE.getDocumentBuilder().newDocument()
    ));
    assertFalse(bundle.getPolicyBackedServices().isEmpty());
    assertEquals(1, bundle.getPolicyBackedServices().size());
    PolicyBackedService policyBackedService = bundle.getPolicyBackedServices().get("service");
    assertNotNull(policyBackedService);
    assertEquals("service", policyBackedService.getName());
    assertEquals("interface", policyBackedService.getInterfaceName());
    assertEquals("id", policyBackedService.getId());
    assertFalse(policyBackedService.getOperations().isEmpty());
    assertEquals(1, policyBackedService.getOperations().size());
    PolicyBackedServiceOperation operation = policyBackedService.getOperations().iterator().next();
    assertEquals("operation", operation.getOperationName());
    assertEquals("policy", operation.getPolicy());
}