AqlQueryBuilder { public AqlQueryBuilder or(AqlItem... items) { if (isNotEmpty(items)) { root.putAll(AqlItem.or((Object[]) items).value()); } 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 orTest() { String result = new AqlQueryBuilder() .or(aqlItem("repo", "myrepo1"), aqlItem("repo", "myrepo2")) .build(); assertThat(result, notNullValue()); assertThat(result, is("items.find(" + "{\"$or\":[" + "{\"repo\":\"myrepo1\"}," + "{\"repo\":\"myrepo2\"}" + "]})")); }