LocalSearchForm implements IsElement { public void onLocalSearchTypeSelected(final String localSearchType) { model.setLocalSearchType(LocalSearchType.valueOf(localSearchType)); } @Inject  LocalSearchForm(final LocalSearchFormView view); void setPhaseConfigForm(PhaseConfigForm phaseConfigForm); void onLocalSearchTypeSelected(final String localSearchType); void onLocalSearchRemoved(); LocalSearchPhaseConfigModel getModel(); void setModel(LocalSearchPhaseConfigModel model); @Override HTMLElement getElement();  }
@Test public void onLocalSearchTypeSelected() { when(model.getLocalSearchType()).thenReturn(LocalSearchType.LATE_ACCEPTANCE); localSearchForm.setModel(model); localSearchForm.onLocalSearchTypeSelected("LATE_ACCEPTANCE"); verify(model).setLocalSearchType(LocalSearchType.LATE_ACCEPTANCE); }