public void addProviders( List<NamedProvider> providers ) {

    if ( providers == null || providers.isEmpty() ) {
      return;
    }

    for ( NamedProvider provider : providers ) {
      model.add( provider );
    }

    model.setSelectedItem( model.getModelObjects().get( 0 ) );

  }
@Test
  public void testAddProviders() {

    controller.addProviders( providers );
    assertEquals( 8, controller.getModel().getModelObjects().size() );

  }