assertThat(restfulResponse.getStatus().getFamily(), is(Family.SUCCESSFUL));
// then
assertThat(restfulResponse.getStatus(), is(HttpStatusCode.OK));
final HomePageRepresentation repr = restfulResponse.getEntity();
assertThat(repr, is(not(nullValue())));
assertThat(repr, isMap());
assertThat(repr.getSelf(), isLink(client)
.rel(Rel.SELF)
.href(endsWith(":39393/"))
.httpMethod(RestfulHttpMethod.GET)
.type(RepresentationType.HOME_PAGE.getMediaType())
.returning(HttpStatusCode.OK)
);
assertThat(repr.getUser(), isLink(client)
.rel(Rel.USER)
.href(endsWith(":39393/user"))
.httpMethod(RestfulHttpMethod.GET)
.type(RepresentationType.USER.getMediaType())
.returning(HttpStatusCode.OK)
);
assertThat(repr.getServices(), isLink(client)
.rel(Rel.SERVICES)
.href(endsWith(":39393/services"))
.httpMethod(RestfulHttpMethod.GET)
.type(RepresentationType.LIST.getMediaType())
.returning(HttpStatusCode.OK)
);
assertThat(repr.getVersion(), isLink(client)
.rel(Rel.VERSION)
.href(endsWith(":39393/version"))
.httpMethod(RestfulHttpMethod.GET)
.type(RepresentationType.VERSION.getMediaType())
.returning(HttpStatusCode.OK)
);
assertThat(repr.getLinks(), isArray());
assertThat(repr.getExtensions(), isMap());
}