assertNotNull(location);
String path = location.getPath();
// Read
GetQuery getQuery = new GetQuery(hostname, port, path, secure);
Object result = getQuery.execute();
assertEquals(JSON.get(contact, "address.street"), JSON.get(result, "address.street"));
assertEquals(contact, result);
// Update
JSON.put(contact, "name", "Joseph User");
PutQuery putQuery = new PutQuery(hostname, port, path, secure);
putQuery.setValue(contact);
boolean created = putQuery.execute();
assertFalse(created);
assertEquals(contact, getQuery.execute());
// Delete
DeleteQuery deleteQuery = new DeleteQuery(hostname, port, path, secure);
deleteQuery.execute();