PluginContainer implements Iterable<AbstractPlugin>, Serializable { public boolean contains( AbstractPlugin plugin ) { return plugins.contains( plugin ); } PluginContainer(); int indexOf( AbstractPlugin plugin ); AbstractPlugin getByName( String pluginName ); AbstractPlugin getByIndex( int index ); boolean add( AbstractPlugin plugin ); boolean removeByName( String pluginName ); boolean removeByIndex( int index ); boolean remove( AbstractPlugin plugin ); void clear(); int size(); boolean contains( AbstractPlugin plugin ); @Override Iterator<AbstractPlugin> iterator();  }
@Test public void contains() { assertTrue( plugins.contains( p1 ) ); assertTrue( plugins.contains( p2 ) ); }