.type( ResourceType.DRL )
.add( ResourceFactory.newByteArrayResource( rule.getBytes() ) )
.build();
assertTrue( kbuilder.hasErrors() );
kbuilder.undo();
assertFalse( kbuilder.hasErrors() );
rule = "package org.drools.compiler.test\n" +
"global java.util.List list\n" +
"import org.drools.compiler.test.FactA\n" +