public void testKetamaNodeLocatorAccessor() throws Exception {
    client =
        new MemcachedClient(new KetamaConnectionFactory(),
            AddrUtil.getAddresses(TestConfig.IPV4_ADDR
            + ":" + TestConfig.PORT_NUMBER));
    assertTrue(client.getNodeLocator() instanceof KetamaNodeLocator);
    assertTrue(client.getNodeLocator().getPrimary("x")
        instanceof MemcachedNodeROImpl);
  }
Test the various memcached client constructors.
src/test/java/net/spy/memcached/MemcachedClientConstructorTest.java