Response response = serviceResource.invokeActionQueryOnly(repoName, actionName, null);
RestfulResponse<ActionResultRepresentation> restfulResponse = RestfulResponse.ofT(response);
assertThat(restfulResponse.getStatus(), is(HttpStatusCode.OK));
final ActionResultRepresentation actionResultRepr = restfulResponse.getEntity();
assertThat(actionResultRepr.getResultType(), is(ResultType.LIST));
final ListRepresentation listRepr = actionResultRepr.getResult().as(ListRepresentation.class);
assertThat(listRepr.getValue(), is(not(nullValue())));
assertThat(listRepr.getValue().size(), is(IsisMatchers.greaterThan(idx + 1)));
final LinkRepresentation domainObjectLinkRepr = listRepr.getValue().arrayGet(idx).as(LinkRepresentation.class);