assertThat(domainObjectIconLink.getRel(), is("icon"));
assertThat(domainObjectIconLink.getHref(), matches("http://localhost:\\d+/images/null.png")); // TODO
}
private DomainObjectRepresentation givenDomainObjectRepresentationFor(final String oidStr) throws JsonParseException, JsonMappingException, IOException {
final DomainObjectResource domainObjectResource = client.getDomainObjectResource();
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;