ServiceInventoryConfig serviceInventoryConfig = new ServiceInventoryConfig()
.setServiceInventoryUri(Resources.getResource("service-inventory.json").toURI());
ServiceInventory serviceInventory = new ServiceInventory(serviceInventoryConfig,
new DiscoveryClientConfig().setDiscoveryServiceURI(URI.create("http://example.com:4111")),
new NodeInfo("test"),
JsonCodec.jsonCodec(ServiceDescriptorsRepresentation.class),
balancer);
assertEquals(Iterables.size(serviceInventory.getServiceDescriptors()), 3);
assertEquals(Iterables.size(serviceInventory.getServiceDescriptors("discovery")), 2);