}
public void testInlined() throws Exception {
B expB = new B();
expB.setB1("b1value");
expB.setB2("b2value");
D expD = new D();
expD.setPath("/someD");
expD.setD1("d1value");
expD.setB1(expB);
ocm.insert( expD);
ocm.save();
D actD = (D) ocm.getObject( "/someD");
assertEquals(expD.getD1(), actD.getD1());
assertEquals(expB.getB1(), actD.getB1().getB1());
assertEquals(expB.getB2(), actD.getB1().getB2());
DFull actDFull = (DFull) ocm.getObject( DFull.class, "/someD");
assertEquals(expD.getD1(), actDFull.getD1());
assertEquals(expB.getB1(), actDFull.getB1());
assertEquals(expB.getB2(), actDFull.getB2());
expB.setB1("updatedvalue1");
ocm.update( expD);
getSession().save();
actD = (D) ocm.getObject( "/someD");
assertEquals(expD.getD1(), actD.getD1());
assertEquals(expB.getB1(), actD.getB1().getB1());
assertEquals(expB.getB2(), actD.getB1().getB2());
actDFull = (DFull) ocm.getObject( DFull.class, "/someD");
assertEquals(expD.getD1(), actDFull.getD1());
assertEquals(expB.getB1(), actDFull.getB1());
assertEquals(expB.getB2(), actDFull.getB2());
expD.setB1(null);
ocm.update( expD);
getSession().save();