assertThat(model.getGroupBy(), is(sources(desc, "sex", "age")));
List<ModelProperty> properties = model.getProperties();
assertThat(properties.size(), is(3));
ModelProperty sex = properties.get(0);
assertThat(sex.getName(), is("sex"));
assertThat(sex.getType().getKind(), is(PropertyTypeKind.BYTE));
assertThat(
sex.getFrom(),
is(source(desc, "sex", Aggregator.IDENT)));
ModelProperty age = properties.get(1);
assertThat(age.getName(), is("age"));
assertThat(age.getType().getKind(), is(PropertyTypeKind.SHORT));
assertThat(
age.getFrom(),
is(source(desc, "age", Aggregator.IDENT)));
ModelProperty count = properties.get(2);
assertThat(count.getName(), is("count"));
assertThat(count.getType().getKind(), is(PropertyTypeKind.LONG));
assertThat(
count.getFrom(),
is(source(desc, "name", Aggregator.COUNT)));
}