assertEquals("Expected denied access (403) error", 403, ((HttpURLConnection) url
.openConnection()).getResponseCode());
// Get ACL details for private object so we can determine the account owner ID.
AccessControlList objectACL = service.getObjectAcl(bucketName, privateKey);
StorageOwner accountOwner = objectACL.getOwner();
// Create a public object.
String publicKey = "Public Object - " + System.currentTimeMillis();
object = new StorageObject(publicKey, "Public object sample text");
AccessControlList acl = buildAccessControlList();