.addHeader(CONTAINER_READ, CONTAINER_ACL_ANYBODY_READ)
.setBody(stringFromResource("/object_list.json"))));
try {
SwiftApi api = api(server.getUrl("/").toString(), "openstack-swift");
ObjectList objects = api.getObjectApi("DFW", "myContainer").list();
assertEquals(objects, parsedObjectsForUrl(server.getUrl("/").toString()));
assertEquals(objects.getContainer().getName(), "myContainer");
assertTrue(objects.getContainer().getAnybodyRead().get());
// Check MD5 is parsed from the ETag header.
SwiftObject object1 = objects.get(1);
assertEquals(base16().lowerCase().decode(object1.getETag()),
object1.getPayload().getContentMetadata().getContentMD5AsHashCode().asBytes());
assertEquals(server.getRequestCount(), 2);
assertAuthentication(server);