InternalWorkingMemory wm = (InternalWorkingMemory)ksession;
BetaMemory memory = (BetaMemory)wm.getNodeMemory(joinNode);
assertEquals(0, memory.getSegmentMemory().getStreamQueue().size());
RightTupleSets stagedRightTuples = memory.getStagedRightTuples();
assertEquals(0, stagedRightTuples.deleteSize());
assertEquals(0, stagedRightTuples.insertSize());
}
@Test
public void testRightTupleLeak2() throws Exception {