public class Cfg2HbmToolTest extends TestCase {
public void testNeedsTable(){
Cfg2HbmTool c2h = new Cfg2HbmTool();
PersistentClass pc = new RootClass();
assertTrue(c2h.needsTable(pc));
assertTrue(c2h.needsTable(new JoinedSubclass(pc)));
assertTrue(c2h.needsTable(new UnionSubclass(pc)));
assertFalse(c2h.needsTable(new SingleTableSubclass(pc)));
assertFalse(c2h.needsTable(new Subclass(pc)));