### Question:
ModelFactoryAutoCollector implements ModelFactoryCollector { public Collection<HeroModelFactory> collect() { return objectFactory.instantiateAllImplementers(HeroModelFactory.class); } ModelFactoryAutoCollector(ObjectFactory objectFactory); Collection<HeroModelFactory> collect();  }### Answer:
@Test public void collectsHeroModels() { HeroModelFactory expectation = mock(HeroModelFactory.class); factory.add(HeroModelFactory.class, expectation); Collection<HeroModelFactory> result = new ModelFactoryAutoCollector(factory).collect(); assertThat(result, CoreMatchers.hasItem(expectation)); }