public void testCorrectTypes() {
    ConnectionFactory factory = new KetamaConnectionFactory();

    NodeLocator locator = factory.createLocator(new ArrayList<MemcachedNode>());
    assertTrue(locator instanceof KetamaNodeLocator);
  }
A very basic test that the KetamaConnectionFactory returns both the correct
hash algorithm and the correct node locator.
src/test/java/net/spy/memcached/KetamaConnectionFactoryTest.java