AqlQueryBuilder { public String build() { try { ObjectMapper mapper = new ObjectMapper(); return "items.find(" + getRootAsString(mapper) + ")" + getIncludeAsString() + getSortAsString(mapper); } catch (JsonProcessingException e) { throw new AqlBuilderException("Error serializing object to json: ", e); } }  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 emptyBuilder() { String result = new AqlQueryBuilder().build(); assertThat(result, notNullValue()); assertThat(result, is("items.find()")); }