RestfulResponse<ActionResultRepresentation> restfulResponse = RestfulResponse.ofT(response);
// then
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);
// then list value
assertThat(listRepr.getValue(), is(not(nullValue())));
assertThat(listRepr.getValue().size(), is(5));