public void testToXMLString() throws Exception
{
String[] fields = {"wine", "vineyard", "year", "price"};
Object[] values = {"Amarone", "Allegrini", "1996", new Integer(90)};
DescriptorSupport ds = new DescriptorSupport(fields, values);
String xml = ds.toXMLString();
assertTrue("Descriptor from XML != Descriptor", descriptorsEqual(ds, (new DescriptorSupport(xml))));
fields = new String[]{"wine=Amarone", "vineyard=Allegrini", "year=1996"};
ds = new DescriptorSupport(fields);
xml = ds.toXMLString();
assertTrue("Descriptor from XML != Descriptor", descriptorsEqual(ds, (new DescriptorSupport(xml))));
}