### Question:
Origin implements Cloneable { @Override public String toString() { return "o=" + username + " " + sessionId + " " + version + " " + connectionData.getNetworkType() + " " + connectionData.getAddressType() + " " + connectionData.getAddress().getHostAddress() + "\r\n"; } private  Origin(String username, long sessionId, long version);  Origin(String username, long sessionId, long version, InetAddress address);  Origin(InetAddress address); InetAddress getAddress(); String getAddressType(); void setAddress(InetAddress address); String getNetworkType(); void setNetworkType(String networkType); long getSessionId(); void setSessionId(long sessionId); String getUsername(); void setUsername(String username); long getVersion(); void setVersion(long version); @Override String toString(); @Override Origin clone(); static Origin parse(String line); static final String NETWORK_TYPE_INTERNET; }### Answer:
@Test public void testToString() throws UnknownHostException { System.out.println("SDP origin toString test..."); Origin o = new Origin("-", 10, 20, InetAddress.getByName("127.0.0.1")); assertEquals("o=- 10 20 IN IP4 127.0.0.1\r\n", o.toString()); }