// Modify the first order and flush this change back to the database
root.setString("CUSTOMER[1]/orders[1]/PRODUCT", "Defibrillator");
Integer orderId = (Integer) root.get("CUSTOMER[1]/orders[1]/ID");
ApplyChangesCommand flush = commandGroup.getApplyChangesCommand();
flush.execute(root);
// Verify
Command orderByID = commandGroup.getCommand("order by id");
orderByID.setParameterValue("ID", orderId);
assertEquals("Defibrillator", root.getString("ANORDER[1]/PRODUCT"));