AqlQueryBuilder { public AqlQueryBuilder desc(String... by) { if (isNotEmpty(by)) { this.sort = AqlItem.desc(by); } return this; }  AqlQueryBuilder item(AqlItem item); AqlQueryBuilder elements(AqlItem... items); AqlQueryBuilder array(String key, AqlItem... items); AqlQueryBuilder and(AqlItem... items); AqlQueryBuilder and(Collection<AqlItem> items); AqlQueryBuilder or(AqlItem... items); AqlQueryBuilder or(Collection<AqlItem> items); AqlQueryBuilder include(String... elements); AqlQueryBuilder asc(String... by); AqlQueryBuilder desc(String... by); String build();  }
@Test public void desc() { String result = new AqlQueryBuilder().desc("repo", "name").build(); assertThat(result, notNullValue()); assertThat(result, is("items.find().sort({\"$desc\":[\"repo\",\"name\"]})")); }