public void testGetIdentity() throws SocialClientLibException {
if (!canRunTest()) {
return;
}
String id = getDemoIdentity().getId();
RestIdentity identity = identityService.get(id);
assertThat("Identity must not be null", identity, notNullValue());
assertThat("Identity provider must be organization", identity.getProviderId(), equalTo("organization"));
assertThat("RemoteId must be demo", identity.getRemoteId(), equalTo("root"));
RestProfile profile = identity.getProfile();
assertThat("profile must not be null", profile, notNullValue());
assertThat("profile.getAvatarUrl() must not be null", profile.getAvatarUrl(), notNullValue());
assertThat("profile.getFullName() must return: Demo gtn", profile.getFullName(), equalTo("Demo gtn"));
try {