// given
final JsonRepresentation givenAction = Util.givenAction(client, "ActionsEntities", "subList");
final ObjectActionRepresentation actionRepr = givenAction.as(ObjectActionRepresentation.class);
final LinkRepresentation invokeLink = actionRepr.getInvoke();
assertThat(invokeLink, isLink(client)
.rel(Rel.INVOKE)
.httpMethod(RestfulHttpMethod.GET)
.href(Matchers.endsWith(":39393/services/ActionsEntities/actions/subList/invoke"))
.build());
JsonRepresentation args =invokeLink.getArguments();
assertThat(args.size(), is(2));
assertThat(args, RestfulMatchers.mapHas("from"));
assertThat(args, RestfulMatchers.mapHas("to"));
// when