public void applyPluginsForContainer( final String category, final XulDomContainer container ) throws XulException {
    List<SpoonPluginInterface> plugins = pluginCategoryMap.get( category );
    if ( plugins != null ) {
      for ( SpoonPluginInterface sp : plugins ) {
        sp.applyToContainer( category, container );
      }
    }
  }
@Test
  public void testApplyPluginsForContainer() throws Exception {
    spoonPluginManager.pluginAdded( plugin1 );
    spoonPluginManager.pluginAdded( plugin2 );
    spoonPluginManager.applyPluginsForContainer( "trans-graph", xulDomContainer );

    assertEquals( 2, applies.size() );
    assertEquals( 1, (int) applies.get( spoonPluginInterface1 ) );
    assertEquals( 1, (int) applies.get( spoonPluginInterface2 ) );
  }