public void shouldGetAColumnFamilyWithMetadataAndFunction() {
DataSet dataSet = new ClassPathXmlDataSet("xml/dataSetWithMetadataAndFunctions.xml");
ColumnFamilyModel columnFamilyModel = dataSet.getColumnFamilies().get(0);
assertThat(columnFamilyModel.getName(), is("columnFamilyWithMetadata"));
List<ColumnModel> columns = columnFamilyModel.getRows().get(0).getColumns();
ColumnModel column1 = columns.get(0);
assertThat(column1.getName().getValue(),is("column1"));
assertThat(column1.getValue().getValue(),is("1"));
assertThat(column1.getValue().getType(),is(GenericTypeEnum.LONG_TYPE));
ColumnModel column2 = columns.get(1);
assertThat(column2.getName().getValue(),is("column2"));
assertThat(column2.getValue().getValue(),is("2"));
assertThat(column2.getValue().getType(),is(GenericTypeEnum.LONG_TYPE));
ColumnModel column3 = columns.get(2);
assertThat(column3.getName().getValue(),is("column3"));
assertThat(column3.getValue().getValue(),is("value3"));
assertThat(column3.getValue().getType(),is(GenericTypeEnum.UTF_8_TYPE));
}