@Test
  public void testToStringEqualsAndHashcode() {
    PutBlobOptions a = new PutBlobOptionsBuilder().chunkUpload(true).maxUploadSize(3).build();
    PutBlobOptions b = new PutBlobOptionsBuilder().chunkUpload(true).maxUploadSize(3).build();
    assertEquals("PutBlobOptions should be equal", a, b);
    assertEquals("PutBlobOptions hashcodes should be equal", a.hashCode(), b.hashCode());
    assertEquals("toString output not as expected",
        "PutBlobOptions{chunkUpload=true, maxUploadSize=3, restRequest=null, skipCompositeChunk=false}", a.toString());
    b = new PutBlobOptionsBuilder().chunkUpload(false).maxUploadSize(3).build();
    assertThat("PutBlobOptions should not be equal.", a, not(b));
  }
Test toString, equals, and hashCode methods.
ambry-api/src/test/java/com/github/ambry/router/PutBlobOptionsTest.java