### Question:
CompositeKey implements Serializable { @Override public int hashCode() { return this.hashCode; } CompositeKey(Object...values); Object get(int i); boolean equals(int i, Object o); int size(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final CompositeKey EMPTY; }### Answer:
@Test public void testHashCode() { assertEquals( new CompositeKey("a", "b", new String[] {"c", "d"}).hashCode(), new CompositeKey("a", "b", new String[] {"c", "d"}).hashCode() ); assertNotEquals( new CompositeKey("a", "b", new String[] {"c", "d"}).hashCode(), new CompositeKey("a", "b", new String[] {"c", "E"}).hashCode() ); }