assertTrue( kBuilder.getErrors().toString().contains( "circular" ) );
}
@Test
public void testExtendsDump() {
PackageDescrBuilder pkgd = DescrFactory.newPackage();
pkgd.name( "org.test" )
.newDeclare().type().name( "Foo" )
.newField( "id" ).type( "int" ).end()
.end()
.newDeclare().type().name( "Bar" ).superType( "Foo" )
.newField( "val" ).type( "int" ).initialValue( "42" ).end()
.end();
String drl = new DrlDumper().dump( pkgd.getDescr() );
KnowledgeBase kb = loadKnowledgeBaseFromString( drl );
FactType bar = kb.getFactType( "org.test", "Bar" );
try {