### Question:
DataTypeConstraintEnumerationItem { public void save(final String newValue) { setNonNullValue(newValue); refreshEnumerationListAndScrollToThisItem(); } @Inject  DataTypeConstraintEnumerationItem(final View view,
                                             final ConstraintPlaceholderHelper placeholderHelper); void setValue(final String newValue); String getValue(); int getOrder(); Element getElement(); void enableEditMode(); void disableEditMode(); void save(final String newValue); void remove(); void setDataTypeConstraintEnumeration(final DataTypeConstraintEnumeration dataTypeConstraintEnumeration); void setConstraintValueType(final String constraintValueType); void setOrder(final int order);  }### Answer:
@Test public void testSave() { final String value = "123"; final Command command = mock(Command.class); doReturn(command).when(enumerationItem).getScrollToThisItemCallback(); enumerationItem.save(value); final String actual = enumerationItem.getValue(); final String expected = "123"; assertEquals(expected, actual); verify(dataTypeConstraintEnumeration).refreshView(command); }