ExternalIdentityRef { @NotNull public String getId() { return id; } ExternalIdentityRef(@NotNull String id, @Nullable String providerName); @Nullable String getProviderName(); @NotNull String getId(); @NotNull String getString(); @NotNull static ExternalIdentityRef fromString(@NotNull String str); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testGetId() { assertEquals(USERID, refNullProvider.getId()); assertEquals(USERID, refEmptyProvider.getId()); assertEquals(USERID, ref.getId()); }