public S3Object getS3Object( Bucket bucket, String objectKey, Long byteRangeStart, Long byteRangeEnd ) throws SdkClientException {
    if ( byteRangeStart != null && byteRangeEnd != null ) {
      GetObjectRequest rangeObjectRequest =
        new GetObjectRequest( bucket.getName(), objectKey ).withRange( byteRangeStart, byteRangeEnd );
      return s3Client.getObject( rangeObjectRequest );
    } else {
      return s3Client.getObject( bucket.getName(), objectKey );
    }
  }
@Test public void testGetS3ObjectInBucket() throws Exception {
    S3Object actual = provider.getS3Object( BUCKET1, "tests3Object" );
    assertNotNull( actual );
    assertEquals( testObject, actual );
  }