Cluster cluster = HFactory.getOrCreateCluster("Test Cluster", "localhost:9171");
List<KeyspaceDefinition> keyspaces = cluster.describeKeyspaces();
assertThat(cluster.describeKeyspaces(), notNullValue());
assertThat(keyspaces.size(), is(3));
assertThat(cluster.describeKeyspace("mykeyspacename"), notNullValue());
assertThat(cluster.describeKeyspace("mykeyspacename").getName(), is("mykeyspacename"));
Keyspace keyspace = HFactory.createKeyspace("mykeyspacename", cluster);
RangeSlicesQuery<byte[], byte[], byte[]> query = HFactory.createRangeSlicesQuery(
keyspace,
BytesArraySerializer.get(),