@Test
public void getAvailableServers() {

    @SuppressWarnings("unchecked")
    Collection<SocketAddress> addresses = Mockito.mock(Collection.class);
    Mockito.when(cacheClient.getAvailableServers()).thenReturn(addresses);
    assertSame(addresses, cache.getAvailableServers());
}