TelURIImpl extends URIImpl implements TelURI { @Override public String toString() { return toBuffer().toString(); } TelURIImpl(final boolean isGlobal, final Buffer phoneNumber, final Buffer headers, final Buffer original); @Override URI clone(); @Override TelURI.Builder copy(); @Override boolean isGlobal(); @Override Buffer getPhoneNumber(); @Override Buffer getParameter(final Buffer name); @Override Buffer getParameter(final String name); @Override Buffer toBuffer(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testBuildGlobalPhoneTelURIWithParams() throws SipParseException, IndexOutOfBoundsException, IOException { TelURI telUri = TelURI.withPhoneNumber("34600200200").withGlobal(true).withParameter("ext", "111").build(); assertEquals("tel:+34600200200;ext=111", telUri.toString()); }