Summarized annotation = loader.modelType("Simple").getAnnotation(Summarized.class);
assertThat(annotation, not(nullValue()));
Term term = annotation.term();
assertThat(term.source(), eq(loader.modelType("A")));
assertThat(term.foldings().length, is(5));
assertThat(term.foldings(), hasItemInArray(mapping(ANY, "valueA", "key")));
assertThat(term.foldings(), hasItemInArray(mapping(SUM, "valueB", "sum")));
assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "valueA", "count")));
assertThat(term.foldings(), hasItemInArray(mapping(MAX, "valueC", "max")));
assertThat(term.foldings(), hasItemInArray(mapping(MIN, "valueC", "min")));