### Question:
HttpResumableChunkNumber { @Override public boolean equals(final Object obj) { return obj instanceof HttpResumableChunkNumber && ((HttpResumableChunkNumber) obj).number == this.number; } HttpResumableChunkNumber(final int number); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }### Answer:
@Test public void testEquals() throws Exception { HttpResumableChunkNumber resumableChunkNumber = new HttpResumableChunkNumber(1); HttpResumableChunkNumber resumableChunkNumber2 = new HttpResumableChunkNumber(1); HttpResumableChunkNumber resumableChunkNumber3 = new HttpResumableChunkNumber(2); assertTrue(resumableChunkNumber.equals(resumableChunkNumber2)); assertFalse(resumableChunkNumber.equals(resumableChunkNumber3)); }