### Question:
AuthProviderController extends AbstractXulEventHandler { public void addNew() { NamedProvider provider = new NamedProvider( generateUniqueName(), new NoAuthAuthProvider( bf ) ); this.model.add( provider ); this.model.setSelectedItem( provider ); } AuthProviderController(); void setBindingFactory( BindingFactory bf ); BindingFactory getBindingFactory(); void init(); void setResourceBundle( ResourceBundle res ); void open(); Collection<AuthProvider> getPossibleTypes(); void setNewOverlay( AuthProvider provider ); String getNewOverlay(); void onAccept(); void onCancel(); void addNew(); void remove(); void browse(); void addProviders( List<NamedProvider> providers );  }### Answer:
@Test public void testAddNew() { controller.addNew(); controller.addNew(); controller.addNew(); assertEquals( 3, controller.getModel().getModelObjects().size() ); }