AddressImpl implements Address { @Override public String toString() { return rawAddress.toString(); } AddressImpl(final Buffer original, final Buffer displayName, final URI uri); Builder copy(); @Override Buffer getDisplayName(); @Override URI getURI(); @Override Buffer toBuffer(); @Override String toString(); @Override void getBytes(final Buffer dst);  }
@Test public void testToString() throws Exception { assertAddressToStringIsTheSame("<sip:alice@whatever.com>"); assertAddressToStringIsTheSame("sip:alice@whatever.com"); assertAddressToStringIsTheSame("alice <sip:alice@whatever.com>"); assertAddressToStringIsTheSame("\"alice\" <sip:alice@whatever.com>"); assertAddressToStringIsTheSame("\"alice smith\" <sip:alice@whatever.com>"); assertAddressToStringIsTheSame("\"alice smith\" <sip:alice@whatever.com;foo=boo>"); }