private int overrideList(String id, Iterable<String> list) {
    return repository.update(repository.criteria().id(id))
        .setList(list)
        .updateFirst()
        .getUnchecked();
  }
Checks {@code $push} functionality of repository
mongo/test/org/immutables/mongo/fixture/SimpleUpdaterTest.java