}
@Test
public void testCanParseListAllMyBuckets() throws HttpException {
Set<BucketMetadata> s3Buckets = runParseListAllMyBuckets();
BucketMetadata container1 = Iterables.get(s3Buckets, 0);
assert container1.getName().equals("adrianjbosstest");
Date expectedDate1 = new SimpleDateFormatDateService().iso8601DateParse("2009-03-12T02:00:07.000Z");
Date date1 = container1.getCreationDate();
assert date1.equals(expectedDate1);
BucketMetadata container2 = (BucketMetadata) s3Buckets.toArray()[1];
assert container2.getName().equals("adrianjbosstest2");
Date expectedDate2 = new SimpleDateFormatDateService().iso8601DateParse("2009-03-12T02:00:09.000Z");
Date date2 = container2.getCreationDate();
assert date2.equals(expectedDate2);
assert s3Buckets.size() == 2;
CanonicalUser owner = new CanonicalUser("e1a5f66a480ca99a4fdfe8e318c3020446c9989d7004e7778029fbcc5d990fa0");
assert container1.getOwner().equals(owner);
assert container2.getOwner().equals(owner);
}