if (expectedChildren == null) {
return;
}
if (accept.equals(MediaType.APPLICATION_JSON)) {
ZChildrenJSON zchildren = cr.getEntity(ZChildrenJSON.class);
Collections.sort(expectedChildren);
Collections.sort(zchildren.children);
assertEquals(expectedChildren, zchildren.children);
assertEquals(znodesr.path(path).toString(), zchildren.uri);
assertEquals(znodesr.path(path).toString() + "/{child}",