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: Root Root", profile.getFullName(), equalTo("Root Root"));
try {
identity = identityService.get(null);
fail("Expecting NullPointerException from IdentityService#get(String)");
} catch (NullPointerException npe) {