// given a response for an initial resource
final HomePageResource homePageResource = client.getHomePageResource();
final Response homePageResp = homePageResource.homePage();
// and given a walker starting from this response
final RepresentationWalker walker = client.createWalker(homePageResp);
// when walk the home pages' 'services' link
walker.walk("services");
// and when locate the ApplibValues repo and walk the its 'object' link
walker.walk("values[title=ApplibValues].links[rel=object]");
// and when locate the AppLibValues repo's "newEntity" action and walk
// to its details
walker.walk("values[memberType=action].details");
// and when find the invoke body for the "newEntity" action and then
// walk the action using the body
final JsonRepresentation newEntityActionDetails = walker.getEntity();
final JsonRepresentation newEntityActionInvokeBody = newEntityActionDetails.getArray("invoke.body");
walker.walk("invoke", newEntityActionInvokeBody);
// and when walk the link to the returned object
walker.walk("link");
// then the returned object is created with its OID
final JsonRepresentation newEntityDomainObject = walker.getEntity();
assertThat(newEntityDomainObject.getString("_self.link.href"), matches(".+/objects/OID:[\\d]+$"));
}