### Question:
CompositeKey implements Serializable { public boolean equals(int i, Object o) { return Objects.equals(this.values[i], o); } 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 testEquals() { CompositeKey c1 = new CompositeKey(); assertEquals(c1, c1); assertNotEquals(c1, null); assertNotEquals(c1, new CompositeKey() {}); }