MongoEntityManager implements EntityManager { @Override public void update(Filter filter, Object[] entities) { Conditions.notNull(entities); if (entities.length == 0) { return; } MongoCollection<Document> collection = getCollection(entities[0]); for (Object entity : entities) { MongoFindQuery find = new MongoFindQuery(collection, getFilters(entity)); find.performQuery(); getConnector().getTransformer().fromGenericDB(find.getOutput().first(), entity, null, filter); } } MongoEntityManager(MorphixMongoConnector connector, MongoCache cache); @Override MorphixMongoConnector getConnector(); MongoCache getCache(); Bson getFilters(Object object); @Override void update(Filter filter, Object[] entities); @Override void save(Filter filter, boolean update, Object[] entities);  }
@Test void update() { runTest(0); int count = 1; for (int i = 0; i < 4; i++) { runTest(count); count *= 10; } }