// Create the expected path ...
PathFactory factory = context.getValueFactories().getPathFactory();
Path expectedPath = parentPath != null ? factory.create(parentPath, path) : factory.create("/" + path);
// Now get the next request and compare the expected and actual ...
CreateNodeRequest request = requests.remove();
Path parentPath = request.under().getPath();
assertThat(parentPath, is(expectedPath.getParent()));
assertThat(request.named(), is(expectedPath.getLastSegment().getName()));
if (properties.length != 0) {
// Create the list of properties ...