PluginsInfo { public Set<Activity> getAllPlugins(final Collection<Plugin> plugins) { Set<Activity> activities = new HashSet<Activity>(); Collection<Set<Activity>> groupedActivities = getClassifiedPlugins(plugins).values(); for (Set<Activity> groupOfActivities : groupedActivities) { activities.addAll(groupOfActivities); } return activities; } PluginsInfo(); @Inject  PluginsInfo(EditorPluginResourceType editorPluginResourceType,
                       PerspectiveLayoutPluginResourceType perspectiveLayoutPluginResourceType,
                       ScreenPluginResourceType screenPluginResourceType,
                       SplashPluginResourceType splashPluginResourceType,
                       DynamicMenuResourceType dynamicMenuResourceType,
                       ActivityBeansInfo activityBeansInfo,
                       ClientTypeRegistry clientTypeRegistry); Set<Activity> getAllPlugins(final Collection<Plugin> plugins); Map<ClientResourceType, Set<Activity>> getClassifiedPlugins(final Collection<Plugin> plugins); Map<ClientResourceType, String> getPluginsTypeLabels();  }
@Test public void getAllPluginsTest() { Set<Activity> allPlugins = pluginsInfo.getAllPlugins(getPlugins()); assertEquals(15, allPlugins.size()); }