PhaseConfigForm implements IsWidget { public void addConstructionHeuristic() { ConstructionHeuristicPhaseConfigModel constructionHeuristicPhaseConfigModel = new ConstructionHeuristicPhaseConfigModel(); model.add(constructionHeuristicPhaseConfigModel); addConstructionHeuristic(constructionHeuristicPhaseConfigModel); } @Inject  PhaseConfigForm(final PhaseConfigFormView view,
                           final ManagedInstance<ConstructionHeuristicForm> constructionHeuristicFormProvider,
                           final ManagedInstance<LocalSearchForm> localSearchFormProvider); void addConstructionHeuristic(); void addConstructionHeuristic(final ConstructionHeuristicPhaseConfigModel constructionHeuristicPhaseConfigModel); void removeConstructionHeuristic(final ConstructionHeuristicForm constructionHeuristicForm); void addLocalSearch(); void addLocalSearch(final LocalSearchPhaseConfigModel localSearchPhaseConfigModel); void removeLocalSearch(final LocalSearchForm localSearchForm); List<PhaseConfigModel> getModel(); void setModel(final List<PhaseConfigModel> model); @Override Widget asWidget();  }
@Test public void addConstructionHeuristic() { addConstructionHeuristic(true); }
@Test public void addConstructionHeuristicExisting() { addConstructionHeuristic(false); }