CompanyDocument cDoc = CompanyDocument.Factory.newInstance();
// add new
CompanyType co = cDoc.addNewCompany();
xc = cDoc.newCursor();
PreBookmark prebk = (PreBookmark) xc.getBookmark(PreBookmark.class);
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));