MemcachedConnection { public static MemcacheClient create(final String distributedCacheSrvRecord) { final MemcacheClientBuilder<String> client = MemcacheClientBuilder.newStringClient(); if (distributedCacheSrvRecord.equals("localhost")) { client.withAddress(distributedCacheSrvRecord); } else { client.withSRVRecord(distributedCacheSrvRecord); } return client.connectAscii(); }  static MemcacheClient create(final String distributedCacheSrvRecord);  }
@Test public void testSrvClientCreation() { MemcachedConnection.create("example.com"); }