final DomainObjectResource domainObjectResource = client.getDomainObjectResource();
final JsonRepresentation body = JsonRepresentation.newArray();
// when
final Response actionInvokeResp = domainObjectResource.invokeAction("OID:1", "list", body.asInputStream());
final RestfulResponse<ScalarValueRepresentation> actionInvokeJsonResp = RestfulResponse.ofT(actionInvokeResp);
assertThat(actionInvokeJsonResp.getStatus().getFamily(), is(Family.SUCCESSFUL));
// then
final ScalarValueRepresentation actionInvokeRepr = actionInvokeJsonResp.getEntity();