{
String[] keys = new String[] { "0", "83316744970572273156255124564039073023",
"22040284005381836676397683785200205813", "43045609512509978730039130609641356928",
"35329030817634227734261170198958572329", "127605887595351923798765477786913079295" };
RandomPartitioner rp = new RandomPartitioner();
for (String key : keys)
{
byte[] keyBytes = key.getBytes();
ByteBuffer hashBuf = ByteBuffer.allocate(keyBytes.length + CassandraUtils.delimeterBytes.length);
hashBuf.put(keyBytes);
hashBuf.put(CassandraUtils.delimeterBytes);
hashBuf.flip();
assertEquals(rp.getToken(hashBuf).token.abs().toString(), key);
}
}