thenResponseIsScalarValueOf(restfulResponse, true);
}
private void thenResponseIsScalarValueOf(RestfulResponse<ActionResultRepresentation> restfulResponse, boolean value) throws JsonParseException, JsonMappingException, IOException {
assertThat(restfulResponse.getHeader(Header.CONTENT_TYPE), hasMediaTypeProfile(RestfulMediaType.APPLICATION_JSON_ACTION_RESULT));
ActionResultRepresentation actionResultRepr = restfulResponse.getEntity();
assertThat(actionResultRepr.getResultType(), is(ResultType.SCALAR_VALUE));
JsonRepresentation resultRepr = actionResultRepr.getResult();
assertThat(resultRepr, is(not(nullValue())));
ScalarValueRepresentation scalarValueRepr = resultRepr.as(ScalarValueRepresentation.class);
LinkRepresentation returnTypeLink = scalarValueRepr.getLinkWithRel(Rel.RETURN_TYPE);