GoogleStorageService service = (GoogleStorageService)
getStorageService(getCredentials());
service.createBucket(bucketName, null,
GSAccessControlList.REST_CANNED_PROJECT_PRIVATE, projectId);
GSBucket[] buckets = service.listAllBuckets(projectId);
boolean found = false;
for(StorageBucket bucket : buckets) {
found = (bucket.getName().equals(bucketName)) || found;
}
assertTrue("Newly-created bucket was not listed", found);