### Question:
XMLRPCCommand extends XMLable { @Override public String toXml() { final StringBuilder ret = new StringBuilder(getOpenTag(getURI(), getMandatingLogin())); if (user != null) { ret.append(user.toXml()); } if (host != null) { ret.append(host.toXml()); } if (getParameter() != null) { ret.append(getParameter().toXml()); } ret.append(getCloseTag()); return ret.toString(); } protected  XMLRPCCommand(final URI uri, final String cmdName); protected  XMLRPCCommand(final URI uri, final String cmdName, final int l); protected  XMLRPCCommand(final URI uri, final IdRpc cmd); protected  XMLRPCCommand(final URI uri, final IdRpc cmd, final int l); protected  XMLRPCCommand(final URI uri, final String cmdName, final UserInterface u, final int l); protected  XMLRPCCommand(final URI uri, final IdRpc cmd, final UserInterface u, final int l); protected  XMLRPCCommand(final URI uri, final String cmdName, final HostInterface h, final int l); protected  XMLRPCCommand(final URI uri, final IdRpc cmd, final HostInterface h, final int l); protected  XMLRPCCommand(final BufferedInputStream input); final String getMandatingLogin(); final void setMandatingLogin(final String dl); final boolean isMandated(); final URI getURI(); final void setURI(final URI uri); void resetRemoteName(); String getRemoteName(); void setRemoteName(final String remoteName); void resetRemoteIP(); String getRemoteIP(); void setRemoteIP(final String remoteIP); int getRemotePort(); void setRemotePort(final int remotePort); void resetRemotePort(); String remoteAddresse(); XMLable getParameter(); void setParameter(final XMLable parameter); void resetParameter(); @Override void clear(); abstract XMLable exec(CommClient comm); static String idRpc(final IdRpc id); XMLable getParam(); void setUser(final UserInterface u); UserInterface getUser(); void setHost(final HostInterface h); HostInterface getHost(); IdRpc getIdRpc(); @Override String toXml(); @Override void fromXml(final Attributes attrs); @Override void xmlElementStart(final String uri, final String tag, final String qname, final Attributes attrs); void xmlElementStartCheckUser(final String uri, final String tag, final String qname, final Attributes attrs); void xmlElementStartCheckUserAndHost(final String uri, final String tag, final String qname,
			final Attributes attrs); @Override void xmlElementStop(final String uri, final String tag, final String qname); static XMLRPCCommand newCommand(final StreamIO io); static XMLRPCCommand newCommand(final String xmlString); static XMLRPCCommand newCommand(final InputStream in); @Override String toString(); @Override String toString(final boolean csv); static void main(final String[] argv); void test(final String[] argv); static final int MANDATINGLOGIN; }### Answer:
@Test public void start() { try { final File temp = File.createTempFile("xw-junit", "rpccommanditf"); final FileOutputStream fout = new FileOutputStream(temp); final DataOutputStream out = new DataOutputStream(fout); getCmd().setLoggerLevel(LoggerLevel.DEBUG); getCmd().setDUMPNULLS(true); final XMLWriter writer = new XMLWriter(out); writer.write(getCmd()); final XMLReader reader = new XMLReader(getCmd2()); reader.read(new FileInputStream(temp)); getCmd2().setDUMPNULLS(true); assertTrue(getCmd().toXml().equals(getCmd2().toXml())); } catch (final Exception e) { logger.exception(e); assert(false); } }