### Question:
IndexMatch implements WritableComparable<IndexMatch> { @Override public int hashCode() { return uid.hashCode(); } IndexMatch(final String uid); protected  IndexMatch();  IndexMatch(final String uid, final JexlNode myNode);  IndexMatch(final String uid, final JexlNode myNode, final String shard);  IndexMatch(final String uid, final JexlNode myNode, final IndexMatchType type);  IndexMatch(Set<JexlNode> nodes, String uid, final IndexMatchType type); String getUid(); JexlNode getNode(); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(IndexMatch other); void setType(IndexMatchType type); void set(JexlNode node); void add(JexlNode node); @Override String toString(); @Override void readFields(DataInput in); @Override void write(DataOutput out);  }### Answer:
@Test public void testHashCode() { String uid = "uid"; IndexMatch indexMatch = new IndexMatch(uid); assertEquals(uid.hashCode(), indexMatch.hashCode()); }