assertEquals("Unexpected size for 'empty' object", 0, basicObject.getContentLength());
basicObject.closeDataInputStream();
// Make sure bucket cannot be removed while it has contents.
try {
service.deleteBucket(bucketName);
fail("Should not be able to delete a bucket containing objects");
} catch (ServiceException e) {
}
// Update/overwrite object with real data content and some metadata.