// then list resources.
//
Resource newResource = collection.createResource(null, "BinaryResource");
newResource.setContent(new byte[] { 0x00, 0x10, 0x01, 0x11 });
collection.storeResource(newResource);
String id = newResource.getId();
String[] resources = collection.listResources();
assertNotNull("Can not be null", resources);
assertEquals("Should have one resource", 1, resources.length);