### Question:
DataTypeConstraintEnumeration implements DataTypeConstraintComponent { DataTypeConstraintEnumerationItem makeEnumerationItem(final String value) { final DataTypeConstraintEnumerationItem enumerationItem = enumerationItemInstances.get(); enumerationItem.setConstraintValueType(getConstraintValueType()); enumerationItem.setValue(value); enumerationItem.setDataTypeConstraintEnumeration(this); return enumerationItem; } @Inject  DataTypeConstraintEnumeration(final View view,
                                         final DMNClientServicesProxy clientServicesProxy,
                                         final ScrollHelper scrollHelper,
                                         final Event<DataTypeConstraintParserWarningEvent> parserWarningEvent,
                                         final ManagedInstance<DataTypeConstraintEnumerationItem> enumerationItemInstances); @Override String getValue(); @Override void setValue(final String value); @Override void setConstraintValueType(final String type); void refreshView(); void refreshView(final Command onCompleteCallback); @Override Element getElement(); void render(); void scrollToPosition(final int position); List<DataTypeConstraintEnumerationItem> getEnumerationItems();  }### Answer:
@Test public void testMakeEnumerationItem() { final String value = "123"; final String constraintValueType = "string"; final DataTypeConstraintEnumerationItem expectedItem = mock(DataTypeConstraintEnumerationItem.class); when(enumerationItemInstances.get()).thenReturn(expectedItem); doReturn(constraintValueType).when(constraintEnumeration).getConstraintValueType(); final DataTypeConstraintEnumerationItem actualItem = constraintEnumeration.makeEnumerationItem(value); verify(expectedItem).setValue(value); verify(expectedItem).setConstraintValueType(constraintValueType); verify(expectedItem).setDataTypeConstraintEnumeration(constraintEnumeration); assertEquals(expectedItem, actualItem); }