@SuppressWarnings("unchecked")
  <T> MongoCollection<T> collection(Class<T> entityType) {
    return (MongoCollection<T>) resolver.resolve(entityType);
  }
Creates mongo collection on demand. Usually in conjunction with {@link MongoExtension}.
criteria/mongo/test/org/immutables/criteria/mongo/BackendResource.java