### Question:
MemcacheClientWrapper extends AbstractMemcacheClientWrapper { @Override public Collection<SocketAddress> getAvailableServers() { List<SocketAddress> servers = new ArrayList<SocketAddress>(); Collection<InetSocketAddress> inetSocketAddresses = memcachedClient.getAvailableServers(); if (inetSocketAddresses != null && !inetSocketAddresses.isEmpty()) { servers.addAll(inetSocketAddresses); } return servers; } MemcacheClientWrapper(final MemcachedClient memcachedClient); @Override boolean add(final String key, final int exp, final Object value); @Override boolean add(final String key, final int exp, final T value, final CacheTranscoder transcoder); @Override long decr(final String key, final int by); @Override long decr(final String key, final int by, final long def); @Override boolean delete(final String key); @Override void flush(); @Override Object get(final String key); @Override T get(final String key, final CacheTranscoder transcoder); @Override T get(final String key, final CacheTranscoder transcoder, final long timeout); @Override Collection<SocketAddress> getAvailableServers(); @Override Map<String, Object> getBulk(final Collection<String> keys); @Override Map<String, T> getBulk(final Collection<String> keys, final CacheTranscoder transcoder); @Override long incr(final String key, final int by); @Override long incr(final String key, final int by, final long def); @Override long incr(final String key, final int by, final long def, final int expiration); @Override boolean set(final String key, final int exp, final Object value); @Override boolean set(final String key, final int exp, final T value, final CacheTranscoder transcoder); @Override void shutdown(); @Override @SuppressWarnings("unchecked") CacheTranscoder getTranscoder(); @Override Object getNativeClient();  }### Answer:
@Test public void getAvailableServers() { Collection<InetSocketAddress> servers = Collections.emptyList(); EasyMock.expect(client.getAvailableServers()).andReturn(servers); EasyMock.replay(client); clientWrapper.getAvailableServers(); EasyMock.verify(client); }