private EurekaClient setUpEurekaClientMock(List<InstanceInfo> servers) {
        final EurekaClient eurekaClientMock = PowerMock.createMock(EurekaClient.class);

        EasyMock.expect(eurekaClientMock.getEurekaClientConfig()).andReturn(new DefaultEurekaClientConfig()).anyTimes();

        EasyMock
                .expect(eurekaClientMock.getInstancesByVipAddress(EasyMock.anyString(), EasyMock.anyBoolean(), EasyMock.anyString()))
                .andReturn(servers.subList(0, initialServerListSize)).times(1)
                .andReturn(servers.subList(initialServerListSize, servers.size())).anyTimes();

        EasyMock
                .expectLastCall();

        EasyMock
                .expect(eurekaClientMock.unregisterEventListener(EasyMock.isA(EurekaEventListener.class)))
                .andReturn(true).anyTimes();

        return eurekaClientMock;
    }
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