kbuilder.add( ResourceFactory.newByteArrayResource( declarationB.getBytes() ), ResourceType.DRL );
kbuilder.add( ResourceFactory.newByteArrayResource( rule.getBytes() ), ResourceType.DRL );
assertTrue( kbuilder.hasErrors() );
KnowledgeBuilder kbuilder2 = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder2.batch()
.add( ResourceFactory.newByteArrayResource( rule.getBytes() ), ResourceType.DRL )
.add( ResourceFactory.newByteArrayResource( declarationA.getBytes() ), ResourceType.DRL )
.add( ResourceFactory.newByteArrayResource(declarationB.getBytes()), ResourceType.DRL )
.build();