### Question:
PropertySet { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append('{'); for (Map.Entry<PropertyDefinition<?>, MyProperty<?>> entry : properties.entrySet()) { builder.append(entry.getKey().getName()); builder.append('='); builder.append(entry.getValue()); builder.append(' '); } builder.append('}'); return builder.toString(); } PropertySet(); void addProperty(PropertyDefinition<T> pd,
      Collection<T> defaultValues, Collection<T> activeValues); @SuppressWarnings("unchecked") Property<T> getProperty(PropertyDefinition<T> d); @Override String toString();  }### Answer:
@Test(dataProvider = "propertyDefinitionData") public void testToString(PropertyDefinition pd) { PropertySet ps = createTestPropertySet(); ps.toString(); }