@Test
    public void testShutdownMultiple() {
        try {
            eurekaClientMock.registerEventListener(EasyMock.anyObject(EurekaEventListener.class));
            EasyMock.expectLastCall().anyTimes();

            PowerMock.replay(DiscoveryClient.class);
            PowerMock.replay(eurekaClientMock);

            DynamicServerListLoadBalancer<DiscoveryEnabledServer> lb1 = new DynamicServerListLoadBalancer<DiscoveryEnabledServer>(
                    config,
                    new AvailabilityFilteringRule(),
                    new DummyPing(),
                    new DiscoveryEnabledNIWSServerList(vipAddress, eurekaClientProvider),
                    new ZoneAffinityServerListFilter<DiscoveryEnabledServer>(),
                    new EurekaNotificationServerListUpdater(eurekaClientProvider)
            );

            DynamicServerListLoadBalancer<DiscoveryEnabledServer> lb2 = new DynamicServerListLoadBalancer<DiscoveryEnabledServer>(
                    config,
                    new AvailabilityFilteringRule(),
                    new DummyPing(),
                    new DiscoveryEnabledNIWSServerList(vipAddress, eurekaClientProvider),
                    new ZoneAffinityServerListFilter<DiscoveryEnabledServer>(),
                    new EurekaNotificationServerListUpdater(eurekaClientProvider)
            );

            DynamicServerListLoadBalancer<DiscoveryEnabledServer> lb3 = new DynamicServerListLoadBalancer<DiscoveryEnabledServer>(
                    config,
                    new AvailabilityFilteringRule(),
                    new DummyPing(),
                    new DiscoveryEnabledNIWSServerList(vipAddress, eurekaClientProvider),
                    new ZoneAffinityServerListFilter<DiscoveryEnabledServer>(),
                    new EurekaNotificationServerListUpdater(eurekaClientProvider)
            );

            lb3.shutdown();
            lb1.shutdown();
            lb2.shutdown();
        } finally {
            PowerMock.verify(eurekaClientMock);
            PowerMock.verify(DiscoveryClient.class);
        }
    }
A test for {@link com.netflix.loadbalancer.DynamicServerListLoadBalancer} using the
{@link com.netflix.niws.loadbalancer.EurekaNotificationServerListUpdater} instead of the default.

@author David Liu
ribbon-eureka/src/test/java/com/netflix/loadbalancer/EurekaDynamicServerListLoadBalancerTest.java