public void testToString() {
Cfg2JavaTool c2j = new Cfg2JavaTool();
PersistentClass pc = getCfg().getClassMapping( "HelloWorld" );
POJOClass pjc = c2j.getPOJOClass(pc);
assertTrue( pjc.needsToString() );
Iterator iter = pjc.getToStringPropertiesIterator();
// in HelloWorld.hbm.xml there're 2 Properties for toString
assertEquals( "id", ((Property) iter.next() ).getName() );
assertEquals( "hello", ((Property) iter.next() ).getName() );