### Question:
XMLVector extends XMLValue { @Override public String toXml() { final Object value = getValue(); if (value == null) { return "<" + getXMLTag() + " " + getColumnLabel(SIZE) + "=\"0\" ></" + getXMLTag() + ">"; } String ret = "<" + getXMLTag() + " " + getColumnLabel(SIZE) + "=\"" + ((Vector<XMLValue>) value).size() + "\" >"; Enumeration<XMLValue> myenum = ((Vector<XMLValue>) value).elements(); for (; myenum.hasMoreElements();) { final XMLValue v = myenum.nextElement(); ret += v.toXml(); } ret += "</" + getXMLTag() + ">"; myenum = null; return ret; } XMLVector();  XMLVector(final Vector v);  XMLVector(final DataInputStream input);  XMLVector(final String input);  XMLVector(final Attributes attrs); int size(); @Override String toXml(); @Override void toXml(final DataOutputStream o); @Override void fromXml(final Attributes attrs); @Override void xmlElementStart(final String uri, final String tag, final String qname, final Attributes attrs); @Override void xmlElementStop(final String uri, final String tag, final String qname); @Override String toString(); Vector<XMLValue> getXmlValues(); static void main(final String[] argv); static final String THISTAG; }### Answer:
@Test public void start() { try { final XMLVector v1 = new XMLVector(); final XMLVector v2 = new XMLVector(); final File temp = File.createTempFile("xw-junit", "itf"); final FileOutputStream fout = new FileOutputStream(temp); final DataOutputStream out = new DataOutputStream(fout); v1.setLoggerLevel(LoggerLevel.DEBUG); v1.setDUMPNULLS(true); final XMLWriter writer = new XMLWriter(out); writer.write(v1); final XMLReader reader = new XMLReader(v2); reader.read(new FileInputStream(temp)); v2.setDUMPNULLS(true); assertTrue(v1.toXml().equals(v2.toXml())); } catch (final Exception e) { logger.exception(e); assert(false); } }