public void testLibmemcachedFormat() throws Exception {
        KetamaNodeKeyFormatter formatter = new KetamaNodeKeyFormatter(KetamaNodeKeyFormatter.Format.LIBMEMCACHED);
        assertEquals("localhost-1", formatter.getKeyForNode(defaultNode, 1));
        assertEquals("1.2.3.4-1", formatter.getKeyForNode(noHostnameNode, 1));
        assertEquals("localhost:11212-1", formatter.getKeyForNode(noDefaultPortNode, 1));
    }
Test the KetamaNodeKeyFormatter with the currently supported 2 formats used by
either spymemcached and libmemcached
src/test/java/net/spy/memcached/KetamaNodeKeyFormatterTest.java