@Test
public void testEquals() {

  Map<String, Object> mapProps = new HashMap<String, Object>();
  mapProps.put("foo", "bar");
  NamedPropertySet propertySet = new NamedPropertySet("foo", mapProps);
  NamedPropertySet propertySet2 = new NamedPropertySet("foo", mapProps);
  assertEquals(propertySet, propertySet2);
  NamedPropertySet propertySet3 = new NamedPropertySet("bar", mapProps);
  assertFalse(propertySet.equals(propertySet3));
  NamedPropertySet propertySet4 = new NamedPropertySet("foo", new HashMap<String, Object>());
  assertFalse(propertySet.equals(propertySet4));
}