// when query the 'contains' action passing in the entity
// (for a range where the entity is contained in the range)
JsonRepresentation args = JsonRepresentation.newMap();
args.mapPut("searchFor.value", firstEntityLink);
args.mapPut("from.value", 0);
args.mapPut("to.value", 3);
Response response = serviceResource.invokeActionQueryOnly("ActionsEntities", "contains", UrlEncodingUtils.urlEncode(args));
RestfulResponse<ActionResultRepresentation> restfulResponse = RestfulResponse.ofT(response);
// then
thenResponseIsScalarValueOf(restfulResponse, true);