### Question:
ListOfNamedValidator extends AbstractValueModel implements ValueHolder<Boolean> { public Boolean getValue() { return areNamesUniqueAndValid() && d_listModel.size() >= d_minElms; } ListOfNamedValidator(ObservableList<T> listModel, int minElms); Boolean getValue(); void setValue(Object newValue);  }### Answer:
@Test public void testMinElements() { assertFalse(d_validator.getValue()); d_list.add(new NamedType("His NamedType!")); assertTrue(d_validator.getValue()); }
@Test public void testNamesShouldBeUniqueAndNotEmpty() { NamedType NamedType = new NamedType("My NamedType!"); d_list.add(NamedType); assertFalse(d_validator.getValue()); NamedType.setName("His NamedType!"); assertTrue(d_validator.getValue()); NamedType.setName(""); assertFalse(d_validator.getValue()); }