// Create a Person
Person person = new Person("Salaboy!");
// Create a Pet
Pet pet = new Pet("mittens", "on a limb", Pet.PetType.CAT);
// Set the Pet to the Person
person.setPet(pet);
// Now we will insert the Pet and the Person into the KnowledgeSession
ksession.insert(pet);
ksession.insert(person);
// We will fire all the rules that were activated
ksession.fireAllRules();
Assert.assertEquals(pet.getPosition(), "on the street");
//Dispose the knowledge session
ksession.dispose();
}