public void testDefaultProperties() {
      KetamaConnectionFactory connectionFactory = new KetamaConnectionFactory();
      assertEquals(connectionFactory.getHashAlg(), DefaultHashAlgorithm.KETAMA_HASH);
      assertTrue(connectionFactory.getWeights().isEmpty());
      assertEquals(connectionFactory.getKetamaNodeKeyFormat(), KetamaNodeKeyFormatter.Format.SPYMEMCACHED);
  }
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