### Question:
FieldValueModel extends AlertSerializableModel { @JsonIgnore public void setValue(String value) { if (null == value) { setValues(Set.of()); } else { setValues(Set.of(value)); } } private  FieldValueModel();  FieldValueModel(Collection<String> values, boolean isSet); Collection<String> getValues(); void setValues(Collection<String> values); @JsonIgnore Optional<String> getValue(); @JsonIgnore void setValue(String value); boolean getIsSet(); void setIsSet(boolean isSet); boolean hasValues(); boolean containsNoData();  }### Answer:
@Test public void setValueTest() { String overwrittenTestValue = "new-value-overwriting-testValue"; FieldValueModel testFieldValueModel = createEmptyFieldValueModel(); testFieldValueModel.setValue(testValue); testFieldValueModel.setValue(overwrittenTestValue); assertTrue(testFieldValueModel.getValues().contains(overwrittenTestValue)); assertEquals(1, testFieldValueModel.getValues().size(), "getValues is expected to return a Set of 1."); }