### Question:
ReflectionFactoryMap { public FACTORYTYPE get(Class producedClass){ return factories.get(producedClass); } ReflectionFactoryMap(ObjectFactory objectFactory, Class<FACTORYTYPE> factoryType, Object... parameters); FACTORYTYPE get(Class producedClass);  }### Answer:
@Test public void usesAllGivenParameters() throws Exception { ObjectFactory factory = mock(ObjectFactory.class); new ReflectionFactoryMap<>(factory, DummyTypeFactory.class, ADDITIONAL_PARAMETER).get(DummyType.class); verify(factory).instantiateAllImplementers(DummyTypeFactory.class, ADDITIONAL_PARAMETER); }