### Question:
EurekaServerList implements ServerList { public EurekaServerList(String eurekaServiceUrl, String serviceName, boolean useSecure, boolean useInternalIp) { this(new EurekaServiceDiscoveryClient(eurekaServiceUrl, 30, TimeUnit.SECONDS), serviceName, useSecure, useInternalIp ); } EurekaServerList(String eurekaServiceUrl, String serviceName, boolean useSecure, boolean useInternalIp);  EurekaServerList(EurekaServiceDiscoveryClient discoveryClient, String serviceName, boolean useSecure, boolean useInternalIp); @Override String getServiceName(); @Override List<ServerInstance> getListOfServers();  }### Answer:
@Test public void eurekaServerListTest() { EurekaServiceDiscoveryClient client = getMockedDiscoveryClient(); EurekaServerList serverList = new EurekaServerList( client, VIP, false, false ); List<ServerInstance> servers = serverList.getListOfServers(); EurekaServerInstance server = (EurekaServerInstance) servers.get(0); Assert.assertNotNull( server.getInstanceInfo() ); Assert.assertEquals( server.getInstanceInfo().getVipAddress(), VIP ); Assert.assertEquals( VIP, serverList.getServiceName() ); }