assertThat(jsonResp.getStatus().getFamily(), is(Family.SUCCESSFUL));
// then
assertThat(jsonResp.getStatus(), is(HttpStatusCode.OK));
final UserRepresentation repr = jsonResp.getEntity();
assertThat(repr, is(not(nullValue())));
assertThat(repr.isMap(), is(true));
assertThat(repr.getSelf(), isLink(client)
.rel(Rel.SELF)
.href(endsWith(":39393/user"))
.httpMethod(RestfulHttpMethod.GET)
.type(RepresentationType.USER.getMediaType())
.returning(HttpStatusCode.OK)
);
assertThat(repr.getUp(), isLink(client)
.rel(Rel.UP)
.href(endsWith(":39393/"))
.httpMethod(RestfulHttpMethod.GET)
.type(RepresentationType.HOME_PAGE.getMediaType())
.returning(HttpStatusCode.OK)
);
assertThat(repr.getUserName(), is(not(nullValue())));
// TODO: change fixture so populated
assertThat(repr.getFriendlyName(), is(nullValue()));
assertThat(repr.getEmail(), is(nullValue()));
assertThat(repr.getRoles(), is(not(nullValue())));
assertThat(repr.getLinks(), isArray());
assertThat(repr.getExtensions(), isMap());
}