ExternalIdentityRef { @Override public String toString() { return "ExternalIdentityRef{" + "id='" + id + '\'' + ", providerName='" + providerName + '\'' + '}'; } 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 testToString() { for (ExternalIdentityRef r : ImmutableList.of(ref, refEmptyProvider, refEmptyProvider)) { assertEquals("ExternalIdentityRef{" + "id='" + r.getId() + '\'' + ", providerName='" + r.getProviderName() + '\'' + '}', r.toString()); } }