assertEquals("Expected denied access (403) error", 403, ((HttpURLConnection) url
.openConnection()).getResponseCode());
// Get ACL details for private object so we can determine the bucket owner.
AccessControlList bucketACL = s3Service.getBucketAcl(bucket);
S3Owner bucketOwner = bucketACL.getOwner();
// Create a public object.
String publicKey = "Public Object #1";
object = new S3Object(bucket, publicKey, "Public object sample text");
AccessControlList acl = new AccessControlList();