.add(null, "sex", PropertyTypeKind.BYTE)
.add(null, "age", PropertyTypeKind.SHORT)
.add(null, "name", new StringType(255))
.toDescription();
SummarizedModelDescription model = new SummarizedModelBuilder("S", desc, "a")
.add("sex", Aggregator.IDENT, "sex")
.add("age", Aggregator.IDENT, "age")
.add("count", Aggregator.COUNT, "name")
.groupBy("sex", "age")
.toDescription();
assertThat(model.getReference().getSimpleName(), is("S"));
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));