### Question:
TransactionalPluginService extends AbstractTransactionalEntityService<PluginConfiguration,
        PluginConfigurationDao> implements PluginService { @Override @PreAuthorize("hasPermission(#forumComponentId, 'COMPONENT', 'GeneralPermission.ADMIN')") public List<Plugin> getPlugins(long forumComponentId) { return pLuginLoader.getPlugins(); } TransactionalPluginService(PluginConfigurationDao dao, PluginLoader pluginLoader); @Override @PreAuthorize("hasPermission(#forumComponentId, 'COMPONENT', 'GeneralPermission.ADMIN')") List<Plugin> getPlugins(long forumComponentId); @Override @PreAuthorize("hasPermission(#forumComponentId, 'COMPONENT', 'GeneralPermission.ADMIN')") void updateConfiguration(PluginConfiguration pluginConfiguration,
                                    long forumComponentId); @Override Map<Long, RegistrationPlugin> getRegistrationPlugins(); @Override Plugin getPluginById(String pluginId, PluginFilter... filters); @Override @PreAuthorize("hasPermission(#forumComponentId, 'COMPONENT', 'GeneralPermission.ADMIN')") PluginConfiguration getPluginConfiguration(String pluginName,
                                                      long forumComponentId); @Override @PreAuthorize("hasPermission(#forumComponentId, 'COMPONENT', 'GeneralPermission.ADMIN')") void updatePluginActivating(PluginActivatingDto updatedPlugin, long forumComponentId);  }### Answer:
@Test public void getPluginsShouldReturnRunningInForumPlugins() { List<Plugin> runningInForumPlugins = Collections.emptyList(); when(pluginLoader.getPlugins()).thenReturn(runningInForumPlugins); List<Plugin> plugins = pluginService.getPlugins(FAKE_COMPONENT_ID); assertEquals(plugins, runningInForumPlugins, "Plugins should be returned by calling plugins loader"); }