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

    repo.find(repo.criteria().id("foo")).fetchAll().getUnchecked();
    check(methodsByName(NoIndexRepository.class, "index")).isEmpty();
  }
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