EventPublishingServiceDiscovery implements ServiceDiscovery { @Override public List<ServiceInstance> getInstances(String serviceName) throws NullPointerException { return serviceDiscovery.getInstances(serviceName); } protected  EventPublishingServiceDiscovery(ServiceDiscovery serviceDiscovery); @Override final void register(ServiceInstance serviceInstance); @Override final void update(ServiceInstance serviceInstance); @Override final void unregister(ServiceInstance serviceInstance); @Override Set<String> getServices(); @Override List<ServiceInstance> getInstances(String serviceName); @Override Page<ServiceInstance> getInstances(String serviceName, int offset, int pageSize); @Override Page<ServiceInstance> getInstances(String serviceName, int offset, int pageSize, boolean healthyOnly); @Override Map<String, Page<ServiceInstance>> getInstances(Iterable<String> serviceNames, int offset, int requestSize); @Override String toString(); @Override void addServiceInstancesChangedListener(ServiceInstancesChangedListener listener); @Override URL getUrl(); @Override ServiceInstance getLocalInstance(); @Override void initialize(URL registryURL); @Override void destroy(); final boolean isInitialized(); final boolean isDestroyed();  }
@Test public void testGetInstances() { serviceDiscoveryTest.testGetInstances(); }