### Question:
FormGenerationModelProviders { public FormGenerationModelProvider<?> getModelProvider(final Diagram diagram) { for (FormGenerationModelProvider provider : providers) { if (provider.accepts(diagram)) { return provider; } } return null; } protected  FormGenerationModelProviders(); @Inject  FormGenerationModelProviders(final @Any Instance<FormGenerationModelProvider<?>> providers);   FormGenerationModelProviders(final Iterable<FormGenerationModelProvider<?>> providers); FormGenerationModelProvider<?> getModelProvider(final Diagram diagram);  }### Answer:
@Test public void testGetModelProviders() { assertEquals(provider1, tested.getModelProvider(diagram1)); assertEquals(provider2, tested.getModelProvider(diagram2)); }