public void testSaveEvent() {
Identity identity = ManagerFactory.getManager().createAndPersistIdentity("testSaveEvent", null, null, null, null);
DBFactory.getInstance().closeSession();
System.out.println("Created identity=" + identity);
//
TestTable entry = new TestTable();
entry.setField1("bar");
entry.setField2(2221234354566776L);
try {
DBFactory.getInstance().saveObject(entry);
DBFactory.getInstance().commit();
fail("Should generate an error");
} catch (DBRuntimeException dre) {