### Question:
Invite { @Override public String toString() { return toCanonicalForm(); } Invite(String host, int port, Identity identity, Signature.Seed seedKey); String host(); int port(); Identity identity(); Signature.Seed seedKey(); String toCanonicalForm(); static Invite fromCanonicalForm(String inviteCode); @Override String toString();  }### Answer:
@Test void testToString() { Identity identity = Identity.random(); Signature.Seed seed = Signature.Seed.random(); Invite invite = new Invite("localhost", 8008, identity, seed); assertEquals( "localhost:8008:" + "@" + identity.publicKeyAsBase64String() + "." + identity.curveName() + "~" + seed.bytes().toBase64String(), invite.toString()); }