@Test
public void testToString() {

  final String expected =
      "AmazonS3Object{region=us-east-1, bucketName=bucket-name, key=object-key,"
          + " size=100, eTag=Optional[object eTag], versionId=Optional[object version]}";
  assertThat(object.toString()).isEqualTo(expected);
}