@Test
public void testStartedWithServices()
throws Exception
{
InMemoryDiscoveryClient discoveryClient = new InMemoryDiscoveryClient(nodeInfo);
discoveryClient.addDiscoveredService(APPLE_1_SERVICE);
discoveryClient.addDiscoveredService(APPLE_2_SERVICE);
discoveryClient.addDiscoveredService(DIFFERENT_TYPE);
discoveryClient.addDiscoveredService(DIFFERENT_POOL);
CachingServiceSelector serviceSelector = new CachingServiceSelector("apple",
new ServiceSelectorConfig().setPool("pool"),
discoveryClient,
executor);