public void domainObjectRepresentationForTransient_hasNoSelf_andHasNoOid() throws Exception {
// given, when
final RestfulRequest request = this.client.createRequest(HttpMethod.POST, "services/simples/actions/newTransientEntity/invoke");
final RestfulResponse<ActionResultRepresentation> response = request.executeT();
final ActionResultRepresentation actionResultRepr = response.getEntity();
assertThat(actionResultRepr.getResultType(), is(ResultType.DOMAIN_OBJECT));
assertThat(actionResultRepr.getResult(), is(not(nullValue())));
final DomainObjectRepresentation domainObjectRepr = actionResultRepr.getResult().as(DomainObjectRepresentation.class);
// then
final LinkRepresentation self = domainObjectRepr.getSelf();
assertThat(self, is(nullValue()));