### Question:
ActivityDataIOEditorViewImpl extends BaseModal implements ActivityDataIOEditorView { @Override public void setPossibleInputAssignmentsDataTypes(final List<String> dataTypeDisplayNames) { ListBoxValues dataTypeListBoxValues = new ListBoxValues(AssignmentListItemWidgetView.CUSTOM_PROMPT, StunnerFormsClientFieldsConstants.CONSTANTS.Edit() + " ", presenter.dataTypesTester()); dataTypeListBoxValues.addValues(dataTypeDisplayNames); inputAssignmentsWidget.setDataTypes(dataTypeListBoxValues); } ActivityDataIOEditorViewImpl(); void init(final Presenter presenter); @Override void onHide(final Event e); @Override void setCustomViewTitle(final String name); @Override void setDefaultViewTitle(); @Override void setInputAssignmentRows(final List<AssignmentRow> inputAssignmentRows); @Override void setOutputAssignmentRows(final List<AssignmentRow> outputAssignmentRows); @Override void setInputAssignmentsVisibility(final boolean visible); @Override void setOutputAssignmentsVisibility(final boolean visible); @Override void setIsInputAssignmentSingleVar(final boolean single); @Override void setIsOutputAssignmentSingleVar(final boolean single); @Override void hideView(); @Override void showView(); @Override List<AssignmentRow> getInputAssignmentData(); @Override List<AssignmentRow> getOutputAssignmentData(); @Override void setPossibleInputAssignmentsDataTypes(final List<String> dataTypeDisplayNames); @Override void setPossibleOutputAssignmentsDataTypes(final List<String> dataTypeDisplayNames); @Override void setInputAssignmentsProcessVariables(final List<String> processVariables); @Override void setOutputAssignmentsProcessVariables(final List<String> processVariables); @Override void setInputAssignmentsDisallowedNames(final Set<String> names); @Override void setReadOnly(boolean readOnly); static final int EXPRESSION_MAX_DISPLAY_LENGTH; }### Answer:
@Test public void testSetPossibleInputAssignmentsDataTypes() { List<String> dataTypes = Arrays.asList("String"); view.setPossibleInputAssignmentsDataTypes(dataTypes); verify(inputAssignmentsWidget).setDataTypes(valuesCaptor.capture()); List<String> typesWithCustomValue = valuesCaptor.getValue().getAcceptableValuesWithCustomValues(); assertEquals(2, typesWithCustomValue.size()); assertTrue(typesWithCustomValue.containsAll(Arrays.asList("Custom ...", "String"))); }