### Question:
NamedPropertySet { @Override public int hashCode() { int result = m_name != null ? m_name.hashCode() : 0; result = 31 * result + (m_mapProperties != null ? m_mapProperties.hashCode() : 0); return result; } NamedPropertySet(String name, Map<String, Object> mapProperties); String getName(); Map<String, Object> getProperties(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testHashCode() { Map<String, Object> mapProps = new HashMap<>(); NamedPropertySet propertySet = new NamedPropertySet("foo", mapProps); NamedPropertySet propertySet2 = new NamedPropertySet("foo", mapProps); assertEquals(propertySet.hashCode(), propertySet2.hashCode()); }