Assert.assertEquals("0.01", String.valueOf(cfProps.get("bloom_filter_fp_chance")));
Assert.assertEquals("KEYS_ONLY", String.valueOf(cfProps.get("caching")));
Assert.assertEquals("4", String.valueOf(cfProps.get("min_compaction_threshold")));
Assert.assertEquals("32", String.valueOf(cfProps.get("max_compaction_threshold")));
ColumnFamilyDefinition cfDef = ksDef.getColumnFamily("testcf1");
Assert.assertEquals("testcf1", cfDef.getName());
Assert.assertEquals(0.2, cfDef.getReadRepairChance());
Assert.assertEquals("KEYS_ONLY", cfDef.getCaching());
Assert.assertTrue(32 == cfDef.getMaxCompactionThreshold());
Assert.assertTrue(4 == cfDef.getMinCompactionThreshold());
Assert.assertEquals(0.01, cfDef.getBloomFilterFpChance());
cfDef = ksDef.getColumnFamily("testcf2");
Assert.assertEquals("testcf2", cfDef.getName());
Assert.assertEquals(0.4, cfDef.getReadRepairChance());
Assert.assertEquals("KEYS_ONLY", cfDef.getCaching());
Assert.assertTrue(32 == cfDef.getMaxCompactionThreshold());
Assert.assertTrue(4 == cfDef.getMinCompactionThreshold());
Assert.assertEquals(0.01, cfDef.getBloomFilterFpChance());
List<ColumnFamilyDefinition> cfDefs = ksDef.getColumnFamilyList();
Assert.assertTrue(2 == cfDefs.size());
cfDef = cfDefs.get(0);
Assert.assertEquals("testcf1", cfDef.getName());
Assert.assertEquals(0.2, cfDef.getReadRepairChance());
Assert.assertEquals("KEYS_ONLY", cfDef.getCaching());
Assert.assertTrue(32 == cfDef.getMaxCompactionThreshold());
Assert.assertTrue(4 == cfDef.getMinCompactionThreshold());
Assert.assertEquals(0.01, cfDef.getBloomFilterFpChance());
cfDef = cfDefs.get(1);
Assert.assertEquals("testcf2", cfDef.getName());
Assert.assertEquals(0.4, cfDef.getReadRepairChance());
Assert.assertEquals("KEYS_ONLY", cfDef.getCaching());
Assert.assertTrue(32 == cfDef.getMaxCompactionThreshold());
Assert.assertTrue(4 == cfDef.getMinCompactionThreshold());
Assert.assertEquals(0.01, cfDef.getBloomFilterFpChance());
keyspace.dropKeyspace();
}