@Test
  public void standard() throws Exception {
    StandardRepository repo = new StandardRepository(context.setup());

    repo.index().withName().ensure().getUnchecked();

    repo.findAll().deleteAll().getUnchecked();
    repo.findAll().deleteFirst().getUnchecked();
    repo.findAll().andModifyFirst().setName("foo").update();
    repo.insert(ImmutableStandard.builder().id("id1").name("foo").build()).getUnchecked();
    repo.findAll().andReplaceFirst(ImmutableStandard.builder().id("id1").build()).upsert().getUnchecked();

  }
Ensures read / write / index methods are present / absent from generated repositories after some flags have been
set using {@link org.immutables.mongo.Mongo.Repository} annotation.
mongo/test/org/immutables/mongo/fixture/flags/FlagsTest.java