### Question:
MetaDataMergeKeyMapEntry { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (mySourceKeyName == null ? 0 : mySourceKeyName.hashCode()); result = prime * result + (myMergeKeyName == null ? 0 : myMergeKeyName.hashCode()); return result; } MetaDataMergeKeyMapEntry();  MetaDataMergeKeyMapEntry(MetaDataMergeKeyMapEntry other);  MetaDataMergeKeyMapEntry(String mergeKeyName, String dataTypeKeyName); void decode(ObjectInputStream ois); int encode(ObjectOutputStream oos); @Override boolean equals(Object obj); String getMergeKeyName(); String getSourceKeyName(); @Override int hashCode(); void setMergeKeyName(String mergeKeyName); void setSourceKeyName(String sourceKeyName); @Override String toString();  }### Answer:
@Test public void testHashCode() { String testMergeKey = RandomStringUtils.randomAlphabetic(25); String testSourceKey = RandomStringUtils.randomAlphabetic(25); myTestObject = new MetaDataMergeKeyMapEntry(testMergeKey, testSourceKey); int expectedResult = 1; expectedResult = 31 * expectedResult + testSourceKey.hashCode(); expectedResult = 31 * expectedResult + testMergeKey.hashCode(); assertEquals(expectedResult, myTestObject.hashCode()); myTestObject = new MetaDataMergeKeyMapEntry(); assertEquals(961, myTestObject.hashCode()); }