NodeMemories nm = ( (StatefulKnowledgeSessionImpl) ksession ).getNodeMemories();
for ( int j = 0; j < nm.length(); j++ ) {
Memory mem = nm.peekNodeMemory( j );
if ( mem != null && mem instanceof PathMemory) {
PathMemory pathMemory = (PathMemory) mem;
StreamTupleEntryQueue kiu = pathMemory.getStreamQueue();
System.out.println( kiu + " >> " + kiu.size() );
assertEquals( 0, kiu.size() );
}
}
}