*/
public void testSequencedType() throws IOException {
Type quoteType = TypeHelper.INSTANCE.getType(TEST_NAMESPACE, "MixedQuote");
DataObject quote = DataFactory.INSTANCE.create(quoteType);
Sequence sequence = quote.getSequence();
sequence.add("\n ");
quote.setString("symbol", "fbnt");
sequence.add("\n ");
quote.setString("companyName", "FlyByNightTechnology");
sequence.add("\n some text\n ");
DataObject child = quote.createDataObject("quotes");
child.setBigDecimal("price", new BigDecimal("2000.0"));
sequence.add("\n more text\n ");
// quote.setBigDecimal("price", new BigDecimal("1000.0"));
sequence.add("price", new BigDecimal("1000.0"));
sequence.add("\n");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
XMLHelper.INSTANCE.save(quote, TEST_NAMESPACE, "mixedStockQuote", baos);
assertTrue(TestUtil.equalXmlFiles(new ByteArrayInputStream(baos.toByteArray()), getClass().getResource(TEST_DATA)));