assertTrue(client.storeObject(containerName, randomData, "application/octet-stream", filename, new HashMap<String,String>()));
// Make sure it's there
List<FilesObject> objects = client.listObjects(containerName);
assertEquals(1, objects.size());
FilesObject obj = objects.get(0);
assertEquals(filename, obj.getName());
assertEquals("application/octet-stream", obj.getMimeType());
assertEquals(NUMBER_RANDOM_BYTES, obj.getSize());
assertEquals(md5Sum(randomData), obj.getMd5sum());
// Make sure the data is correct
assertArrayEquals(randomData, client.getObject(containerName, filename));
// Make sure the data is correct as a stream