expected = "{preSet in FooHandler: 2, <xml-fragment></xml-fragment>, {company.xsd}company, false, -1}";
actual = prebk.getMsg();
Assert.assertTrue("Expected: " + expected + "\n actual: " + actual, expected.equals(actual));
PostBookmark postbk = (PostBookmark) xc.getBookmark(PostBookmark.class);
expected = "{postSet in FooHandler: 2, " + cDoc + ", {company.xsd}company, false, -1}";
actual = postbk.getMsg();
Assert.assertTrue("Expected: " + expected + "\n actual: " + actual, expected.equals(actual));
xc.dispose();
// set
co.setName2("xbean name");
xc = co.newCursor();
prebk = (PreBookmark) xc.getBookmark(PreBookmark.class);
expected = "{preSet in FooHandler: 1, <xml-fragment/>, name, true, -1}";
actual = prebk.getMsg();
Assert.assertTrue("Expected: " + expected + "\n actual: " + actual, expected.equals(actual));
postbk = (PostBookmark) xc.getBookmark(PostBookmark.class);
expected = "{postSet in FooHandler: 1, " + co + ", name, true, -1}";
actual = postbk.getMsg();
Assert.assertTrue("Expected: " + expected + "\n actual: " + actual, expected.equals(actual));
xc.dispose();
}