testFileDir.mkdirs();
File testFile = new File(testFileDir,SimpleAddTest.class.getSimpleName()+(_testCounter++)+".jdb");
testFile.delete();
JODBSessionContainer sessionContainer = getContainerForFile(testFile);
ObjectC objectC = new ObjectC();
sessionContainer.set(objectC);
sessionContainer.commit();
sessionContainer.close();
sessionContainer = getContainerForFile(testFile);
List classes = sessionContainer.getAllObjects();
if(classes.size()!=1){
throw new RuntimeException(""+classes.size());
}
Object obj = classes.get(0);
if(obj.getClass() != objectC.getClass()){
throw new RuntimeException();
}
sessionContainer.close();
}