### Question:
SpoonPluginManager implements PluginTypeListener { public List<SpoonPluginInterface> getPlugins() { return Collections.unmodifiableList( Arrays.asList( plugins.values().toArray( new SpoonPluginInterface[] {} ) ) ); } private  SpoonPluginManager(); @Override void pluginAdded( final Object serviceObject ); @Override void pluginRemoved( Object serviceObject ); @Override void pluginChanged( Object serviceObject ); static SpoonPluginManager getInstance(); void applyPluginsForContainer( final String category, final XulDomContainer container ); List<SpoonPluginInterface> getPlugins(); void notifyLifecycleListeners( SpoonLifecycleListener.SpoonLifeCycleEvent evt );  }### Answer:
@Test public void testGetPlugins() throws Exception { spoonPluginManager.pluginAdded( plugin1 ); spoonPluginManager.pluginAdded( plugin2 ); List<SpoonPluginInterface> pluginInterfaces = spoonPluginManager.getPlugins(); assertEquals( 2, pluginInterfaces.size() ); assertTrue( pluginInterfaces .containsAll( Arrays.asList( spoonPluginInterface1, spoonPluginInterface2 ) ) ); }