DataObject quote = factory.create("http://www.example.com/mixed", "MixedOpenQuote");
assertTrue(quote.getType().isSequenced());
Sequence sequence = quote.getSequence();
sequence.addText("\n ");
Type definedGlobalType = types.getType("http://www.example.com/open", "DocumentRoot");
Property definedSymbolProperty = definedGlobalType.getProperty("symbol");
quote.setString(definedSymbolProperty, "fbnt");
sequence.addText("\n ");
quote.setString("companyName", "FlyByNightTechnology");
sequence.addText("\n some text\n ");
DataObject child = quote.createDataObject("quotes");
child.setBigDecimal("price", new BigDecimal("2000.0"));
sequence.addText("\n more text\n ");
// quote.setBigDecimal("price", new BigDecimal("1000.0"));
sequence.add("price", new BigDecimal("1000.0"));
sequence.addText("\n");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
xmlHelper.save(quote, "http://www.example.com/mixed", "mixedOpenStockQuote", baos);
assertTrue(TestUtil.equalXmlFiles(new ByteArrayInputStream(baos.toByteArray()), getClass().getResource(MIXEDOPEN_XML)));
}