final Response domainObjectResp = domainObjectResource.object(oidStr);
final RestfulResponse<DomainObjectRepresentation> domainObjectJsonResp = RestfulResponse.ofT(domainObjectResp);
assertThat(domainObjectJsonResp.getStatus().getFamily(), is(Family.SUCCESSFUL));
final DomainObjectRepresentation domainObjectRepr = domainObjectJsonResp.getEntity();
return domainObjectRepr;
}