byte randomData[] = makeRandomBytes();
client.createPath(containerName, "foo");
client.storeObject(containerName, randomData, "application/octet-stream", "notInContainer.dat", new HashMap<String, String>());
client.storeObject(containerName, randomData, "application/octet-stream", "foo/inContainer.dat", new HashMap<String, String>());
List<FilesObject> allObjects = client.listObjects(containerName);
List<FilesObject> pathObjects = client.listObjects(containerName, "foo");
assertEquals(3, allObjects.size());
assertEquals(1, pathObjects.size());
assertEquals("foo/inContainer.dat", pathObjects.get(0).getName());