public void shouldGetColumnFamiliesWithDefinedValues() {
DataSet dataSet = new ClassPathXmlDataSet("xml/dataSetDefinedValues.xml");
assertThat(dataSet.getColumnFamilies(), notNullValue());
assertThat(dataSet.getColumnFamilies().isEmpty(), is(false));
ColumnFamilyModel beautifulColumnFamily = dataSet.getColumnFamilies().get(0);
assertThat(beautifulColumnFamily, notNullValue());
assertThat(beautifulColumnFamily.getName(), is("beautifulColumnFamilyName"));
assertThat(beautifulColumnFamily.getType(), is(ColumnType.SUPER));
assertThat(beautifulColumnFamily.getKeyType().getClassName(),is(ComparatorType.TIMEUUIDTYPE.getClassName()));
assertThat(beautifulColumnFamily.getComparatorType().getClassName(),is(ComparatorType.UTF8TYPE.getClassName()));
assertThat(beautifulColumnFamily.getSubComparatorType().getClassName(),is(ComparatorType.LONGTYPE.getClassName()));
assertThat(beautifulColumnFamily.getDefaultColumnValueType().getClassName(),is(ComparatorType.UTF8TYPE.getClassName()));
assertThat(beautifulColumnFamily.getComment(), is("amazing comment"));
assertThat(beautifulColumnFamily.getCompactionStrategy(), is("LeveledCompactionStrategy"));
assertThat(beautifulColumnFamily.getCompactionStrategyOptions().get(0).getName(), is("sstable_size_in_mb"));
assertThat(beautifulColumnFamily.getCompactionStrategyOptions().get(0).getValue(), is("10"));
assertThat(beautifulColumnFamily.getGcGraceSeconds(), is(9999));
assertThat(beautifulColumnFamily.getMaxCompactionThreshold(), is(31));
assertThat(beautifulColumnFamily.getMinCompactionThreshold(), is(3));
assertThat(beautifulColumnFamily.getReadRepairChance(), is(0.1d));
assertThat(beautifulColumnFamily.getReplicationOnWrite(), is(Boolean.FALSE));
ColumnFamilyModel amazingColumnFamily = dataSet.getColumnFamilies().get(1);
assertThat(amazingColumnFamily.getName(), is("amazingColumnFamilyName"));
assertThat(amazingColumnFamily.getType(), is(ColumnType.STANDARD));
assertThat(amazingColumnFamily.getKeyType().getClassName(),
is(ComparatorType.UTF8TYPE.getClassName()));
assertThat(amazingColumnFamily.getComparatorType().getClassName(),
is(ComparatorType.UTF8TYPE.getClassName()));
}