@Test
public void updateConfigurationShouldApplyConfigurationForPlugin()
throws NotFoundException, UnexpectedErrorException {
//GIVEN
String pluginName = "Should be configured";
PluginConfiguration configuration = new PluginConfiguration(pluginName, true, Collections.EMPTY_LIST);
DummyPlugin shouldBeConfiguredPlugin = new DummyPlugin(pluginName);
DummyPlugin shouldNotBeConfiguredPlugin = new DummyPlugin("Should not be configured");
when(pluginLoader.getPlugins()).thenReturn(Arrays.asList((Plugin) shouldBeConfiguredPlugin, shouldNotBeConfiguredPlugin));
//WHEN
pluginService.updateConfiguration(configuration, FAKE_COMPONENT_ID);