assertThat(listMemberRepr.getMemberType(), is("action"));
assertThat(listMemberRepr.getDisabledReason(), is(nullValue()));
assertThat(listMemberRepr.getLinks(), isArray());
assertThat(listMemberRepr.getLinks().size(), is(1));
LinkRepresentation listMemberReprDetailsLink = listMemberRepr.getLinkWithRel(Rel.DETAILS);
assertThat(listMemberReprDetailsLink, isLink(client)
.httpMethod(RestfulHttpMethod.GET)
.href(endsWith("/services/JdkValuedEntities/actions/list"))
.returning(HttpStatusCode.OK)
.responseEntityWithSelfHref(listMemberReprDetailsLink.getHref()).build());
assertThat(repr.getLinks(), isArray());
assertThat(repr.getLinks().size(), is(3));
// link to self (see above)
// link to describedby
LinkRepresentation describedByLink = repr.getLinkWithRel(Rel.DESCRIBEDBY);
assertThat(describedByLink, isLink(client)
.httpMethod(RestfulHttpMethod.GET)
.href(endsWith("/domain-types/JdkValuedEntities")).build()
);
assertThat(describedByLink, isLink(client)
.returning(HttpStatusCode.OK)
.responseEntityWithSelfHref(describedByLink.getHref()).build());
assertThat(repr.getLinkWithRel(Rel.PERSIST), is(nullValue()));
assertThat(repr.getLinkWithRel(Rel.UPDATE), is(nullValue()));
assertThat(repr.getLinkWithRel(Rel.DELETE), is(nullValue()));