CreateView model = ViewParser.parse(def);
assertThat(model, is(new CreateView(
n("test"),
Arrays.asList(new Select[] {
new Select(n("t1.pk"), Aggregator.IDENT, n("pk")),
new Select(n("t1.pk"), Aggregator.COUNT, n("count")),
new Select(n("t1.pk"), Aggregator.MAX, n("max")),
new Select(n("t1.pk"), Aggregator.SUM, n("sum")),
}),
new From(
n("t1"),
null,
null),