### Question:
EllipsisFrame extends Frame { @Override public int hashCode() { return Objects.hash(super.hashCode(), more); } EllipsisFrame(int more); @Override String getClassName(); @Override String getMethodName(); @Override String getFileName(); @Override int getLineNumber(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override boolean isNative(); @Override boolean isUnknown(); int howManyMore(); static final String ELLIPSIS_CLASS_NAME; static final String ELLIPSIS_METHOD_NAME; }### Answer:
@Test public void testHashCode() { int more = 42; EllipsisFrame frame = new EllipsisFrame(more); assertThat("Hash codes generated on the same objects should be equal!", frame.hashCode(), equalTo(frame.hashCode())); assertThat("Hash codes generated on equal objects should be equal!", frame.hashCode(), equalTo(new EllipsisFrame(more).hashCode())); assertThat("Hash codes generated on non equal objects should be different!", frame.hashCode(), not(new EllipsisFrame(24).hashCode())); }