private DomainObjectRepresentation givenDomainObjectRepresentationFor(final String domainType, String instanceId) throws JsonParseException, JsonMappingException, IOException {
final DomainObjectResource domainObjectResource = client.getDomainObjectResource();
final Response domainObjectResp = domainObjectResource.object(domainType, instanceId);
final RestfulResponse<DomainObjectRepresentation> domainObjectJsonResp = RestfulResponse.ofT(domainObjectResp);
assertThat(domainObjectJsonResp.getStatus().getFamily(), is(Family.SUCCESSFUL));
final DomainObjectRepresentation domainObjectRepr = domainObjectJsonResp.getEntity();
return domainObjectRepr;