### Question:
FieldValueModel extends AlertSerializableModel { public boolean containsNoData() { return !hasValues() && !getIsSet(); } 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 containsNoDataTest() { FieldValueModel testFieldValueModelNoValueIsNotSet = createEmptyFieldValueModel(); testFieldValueModelNoValueIsNotSet.setIsSet((Boolean.FALSE)); FieldValueModel testFieldValueModelNoValue = createEmptyFieldValueModel(); FieldValueModel testFieldValueModelIsNotSet = createEmptyFieldValueModel(); testFieldValueModelIsNotSet.setValue(testValue); testFieldValueModelIsNotSet.setIsSet(Boolean.FALSE); FieldValueModel testFieldValueModel = createEmptyFieldValueModel(); testFieldValueModel.setValue(testValue); assertTrue(testFieldValueModelNoValueIsNotSet.containsNoData()); assertFalse(testFieldValueModelNoValue.containsNoData()); assertFalse(testFieldValueModelIsNotSet.containsNoData()); assertFalse(testFieldValueModel.containsNoData()); }