SettingsMap { public final boolean equals (final SettingsMap aSettingsMap) { if (this == aSettingsMap) { return true; } if (aSettingsMap != null) { return equals(aSettingsMap.settingsMap); } return false; } SettingsMap(); final void add(final OperationalTextKey textKey, final String textValue); final String get(final OperationalTextKey textKey); final String remove(final OperationalTextKey textKey); final void update(final OperationalTextKey textKey, final String newTextValue, final IResultFunction resultFunction); final boolean equals(final SettingsMap aSettingsMap); final boolean equals(final Map<OperationalTextKey , String> aMap); final Set<Map.Entry<OperationalTextKey , String>> entrySet(); @Override final int hashCode(); @Override final String toString(); final void clear(); final ByteBuffer asByteBuffer(); int size();  }
@Test public final void testEquals () { settingsMap.add(OperationalTextKey.DATA_DIGEST, "Yes"); SettingsMap anotherSettingsMap = new SettingsMap(); anotherSettingsMap.add(OperationalTextKey.DATA_DIGEST, "Yes"); assertTrue(settingsMap.equals(anotherSettingsMap)); }