### Question:
TrustDomain { @Override public String toString() { return name; } private  TrustDomain(final String trustDomain); static TrustDomain of(@NonNull final String trustDomain); SpiffeId newSpiffeId(final String... segments); @Override String toString();  }### Answer:
@Test void testToString() { TrustDomain trustDomain = TrustDomain.of("test.domain"); assertEquals("test.domain", trustDomain.toString()); }