### Question:
DataTypeSelectView implements DataTypeSelect.View { HTMLOptionElement makeOption(final DataType dataType, final Function<DataType, String> dataTypeConsumer) { final String optionValue = dataTypeConsumer.apply(dataType); final HTMLOptionElement option = makeHTMLOptionElement(); option.text = optionValue; option.value = optionValue; return option; } @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 testMakeOption() { final String value = "value"; final DataType dataType = makeDataType(value); final HTMLOptionElement htmlOptionElement = mock(HTMLOptionElement.class); doReturn(htmlOptionElement).when(view).makeHTMLOptionElement(); final HTMLOptionElement option = view.makeOption(dataType, DataType::getName); assertEquals(value, option.text); assertEquals(value, option.value); }