keyspace.createColumnFamily(options2);
Thread.sleep(1000);
KeyspaceDefinition ksDef = keyspace.describeKeyspace();
verifyKeyspacePropertiesForSimpleStrategy(keyspaceName, ksDef);
Properties cfProps = keyspace.getColumnFamilyProperties("testcf1");
Assert.assertEquals("0.2", String.valueOf(cfProps.get("read_repair_chance")));
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")));
cfProps = keyspace.getColumnFamilyProperties("testcf2");
Assert.assertEquals("0.4", String.valueOf(cfProps.get("read_repair_chance")));
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());