### Question:
FieldValueModel extends AlertSerializableModel { public Collection<String> getValues() { if (null != values) { return values; } return Set.of(); } 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 getValuesTest() { String duplicateTestValue = testValue; List<String> values = new ArrayList(); values.add(testValue); values.add(duplicateTestValue); FieldValueModel testFieldValueModel = new FieldValueModel(values, Boolean.TRUE); assertTrue(testFieldValueModel.getValues().containsAll(values)); assertEquals(1, testFieldValueModel.getValues().size(), "getValues is expected to return a Set of 1."); }
@Test public void getNullValuesTest() { FieldValueModel testFieldValueModel = createEmptyFieldValueModel(); assertTrue(testFieldValueModel.getValues().isEmpty()); }