ksession.setGlobal("myGlobalObj", new MyObject("myglobalObj"));
MyObject obj1 = new MyObject("obj1");
FactHandle handle = ksession.insert(obj1);
Assert.assertNotNull(handle);
Assert.assertEquals(true, ((DefaultFactHandle) handle).isDisconnected());
System.out.println("Handle Identity HashCode -> " + handle.toExternalForm());
//I'm having problems with ObjectStoreWrapper that it's not serializable
Collection<FactHandle> factHandles = ksession.getFactHandles();
Assert.assertEquals(1, factHandles.size());
FactHandle newHandle = factHandles.iterator().next();