byte[] binaryData = new byte[1024];
new Random().nextBytes(binaryData);
String fileUri = testFile(folderUri);
sardine.put(fileUri, new ByteArrayInputStream(binaryData), "application/octet-stream");
DavResource resource = sardine.getResources(fileUri).get(0);
Map<String, String> customProperties = resource.getCustomProps();
assertTrue(!customProperties.isEmpty());
assertEquals("nt:file", customProperties.get("primaryType"));
assertNotNull(customProperties.get("created"));
assertNotNull(customProperties.get("createdBy"));
}