### Question:
DataTypeSelectView implements DataTypeSelect.View { @Override public void setDataType(final DataType dataType) { final String type = dataType.getType(); typeText.textContent = "(" + type + ")"; value = type; } @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 testSetDataType() { final String expectedType = "type"; final DataType dataType = makeDataType(expectedType); final String expectedTypeText = "(type)"; view.setDataType(dataType); final String actualType = view.getValue(); final String actualTypeText = typeText.textContent; assertEquals(expectedType, actualType); assertEquals(expectedTypeText, actualTypeText); }