MongoQuery implements Query { @Override public Criteria getCriteria() { return criteria; } MongoQuery(final Criteria criteria,
            final List<SortOption> sortOptions,
            final int limit,
            final int skip); @Override Criteria getCriteria(); @Override List<SortOption> getSortOptions(); @Override int getLimit(); @Override int getSkip(); @Override Query withCriteria(final Criteria criteria); Bson getSortOptionsAsBson(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void criteriaIsCorrectlySet() { final MongoQuery query = new MongoQuery(KNOWN_CRIT, knownSortOptions, defaultPageSizeFromConfig, MongoQueryBuilder.DEFAULT_SKIP); assertThat(query.getCriteria()).isEqualTo(KNOWN_CRIT); }