public void hasSize(int size) {
    if (result.size() != size) {
      throw new AssertionError(
              String.format("Expected query [%s] to return %d entries but was of size %d: %s",
                      toDebugString(query),
                      size,
                      result.size(),
                      result));
    }
  }
Generic checker for a {@link org.immutables.criteria.Criterion}
@param <T>
criteria/common/test/org/immutables/criteria/personmodel/CriteriaChecker.java