byte randomData[] = makeRandomBytes();
assertTrue(client.storeObject(containerName, randomData, "application/octet-stream", filename, new HashMap<String,String>()));
// Do the test if we have an account
if (FilesUtil.getProperty("account") != null) {
FilesAccountInfo info = client.getAccountInfo();
assertTrue(info.getContainerCount() > 0);
assertTrue(info.getBytesUsed() >= randomData.length);
}
// Clean up
client.deleteObject(containerName, filename);
assertTrue(client.deleteContainer(containerName));