* @param quote
*/
private void testDynamicNestedDOBody(DataObject quote) {
// Begin logging changes
//
ChangeSummary changeSummary = quote.getChangeSummary();
assertNotNull(changeSummary);
assertFalse(changeSummary.isLogging());
changeSummary.beginLogging();
// Modify the data graph in various fun and interesting ways
//
quote.setString("symbol", "fbnt");
quote.setString("companyName", "FlyByNightTechnology");
quote.setBigDecimal("price", new BigDecimal("1000.0"));
quote.setBigDecimal("open1", new BigDecimal("1000.0"));
quote.setBigDecimal("high", new BigDecimal("1000.0"));
quote.setBigDecimal("low", new BigDecimal("1000.0"));
quote.setDouble("volume", 1000);
quote.setDouble("change1", 1000);
DataObject child = quote.createDataObject("quotes");
child.setBigDecimal("price", new BigDecimal("2000.0"));
changeSummary.endLogging();
assertEquals(2, changeSummary.getChangedDataObjects().size()); // 2 DataObjects
assertTrue(changeSummary.getChangedDataObjects().contains(quote));
assertTrue(changeSummary.getChangedDataObjects().contains(child));
assertFalse(changeSummary.isCreated(quote));
assertTrue(changeSummary.isCreated(child));
ChangeSummary.Setting ov = changeSummary.getOldValue(quote, quote.getType().getProperty("symbol"));
assertNull(ov.getValue());
}