assertThat(nameProperty.getString("disabledReason"), is("Always disabled"));
}
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));
return domainObjectJsonResp.getEntity();
}