private DebtModelPluginRepository modelFinder;
@Test
public void test_component_initialization() throws Exception {
// we do have the "csharp-model.xml" file in src/test/resources
PluginMetadata csharpPluginMetadata = mock(PluginMetadata.class);
when(csharpPluginMetadata.getKey()).thenReturn("csharp");
// but we don' have the "php-model.xml" one
PluginMetadata phpPluginMetadata = mock(PluginMetadata.class);
when(phpPluginMetadata.getKey()).thenReturn("php");
PluginRepository repository = mock(PluginRepository.class);
when(repository.getMetadata()).thenReturn(Lists.newArrayList(csharpPluginMetadata, phpPluginMetadata));
FakePlugin fakePlugin = new FakePlugin();
when(repository.getPlugin(anyString())).thenReturn(fakePlugin);