public class CqlIndexSpecificationAssertions {
public static double DELTA = 1e-6; // delta for comparisons of doubles
public static void assertIndex(IndexDescriptor expected, String keyspace, Session session) {
IndexMetadata imd = session.getCluster().getMetadata().getKeyspace(keyspace.toLowerCase())
.getTable(expected.getTableName().toCql()).getColumn(expected.getColumnName().toCql()).getIndex();
assertEquals(expected.getName(), imd.getName());
}