}
}
public void extractArchive() throws Exception {
for (String regionId : regions) {
ExtractArchiveResponse extractResponse = api.bulkApiInRegion(regionId).extractArchive(containerName,
Payloads.newPayload(tarGz), "tar.gz");
assertEquals(extractResponse.created(), OBJECT_COUNT);
assertTrue(extractResponse.errors().isEmpty());
assertEquals(api.containerApiInRegion(regionId).get(containerName).objectCount(), OBJECT_COUNT);
// repeat the command
extractResponse = api.bulkApiInRegion(regionId).extractArchive(containerName, Payloads.newPayload(tarGz),
"tar.gz");
assertEquals(extractResponse.created(), OBJECT_COUNT);
assertTrue(extractResponse.errors().isEmpty());
}
}