ExternalIdentityRef { @NotNull public String getString() { return string; } 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 testGetString() { String s = refNullProvider.getString(); assertNotNull(s); assertFalse(USERID.equals(s)); assertEquals("user%25id", s); s = refEmptyProvider.getString(); assertNotNull(s); assertFalse(USERID.equals(s)); assertEquals("user%25id", s); s = ref.getString(); assertNotNull(s); assertEquals("user%25id;provider%3bName", s); }