### Question:
DataTypeSelectView implements DataTypeSelect.View { @Override public void enableEditMode() { hide(typeText); showSelectPicker(); setPickerValue(presenter.getDataType().getType()); } @Inject  DataTypeSelectView(final HTMLDivElement typeText,
                              final HTMLSelectElement typeSelect,
                              final HTMLOptGroupElement typeSelectOptGroup,
                              final HTMLOptionElement typeSelectOption,
                              final HTMLOptGroupElement typeSelectStructureOptGroup,
                              final TranslationService translationService); @Override void init(final DataTypeSelect presenter); @Override void setupDropdown(); @Override void enableEditMode(); @Override void disableEditMode(); @Override void setDataType(final DataType dataType); void onSelectChange(final JQuerySelectPickerEvent event); @Override String getValue();  }### Answer:
@Test public void testEnableEditMode() { final String type = "type"; final DataType dataType = makeDataType(type); doNothing().when(view).showSelectPicker(); doNothing().when(view).setPickerValue(anyString()); when(presenter.getDataType()).thenReturn(dataType); typeText.classList = mock(DOMTokenList.class); view.enableEditMode(); verify(typeText.classList).add(HIDDEN_CSS_CLASS); verify(view).showSelectPicker(); verify(view).setPickerValue(type); }