KnowledgeBase kbase = kbuilder.newKnowledgeBase();
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
KnowledgeRuntimeLoggerFactory.newConsoleLogger(ksession);
Person salaboy = new Person("Salaboy", 28);
Address address = new Address("nowhere","",1425,"BA");
salaboy.setAddress(address);
ksession.insert(salaboy);
ksession.insert(address);
int fired = ksession.fireAllRules();
assertEquals(3, fired);