/* should assert as ObjectType matches */
objectTypeNode.assertObject( handle1,
context,
workingMemory );
/* check asserted object was added to memory */
final FactHashTable memory = (FactHashTable) workingMemory.getNodeMemory( objectTypeNode );
assertEquals( 1,
memory.size() );
/* should retract as ObjectType matches */
objectTypeNode.retractObject( handle1,
context,
workingMemory );
/* check asserted object was removed from memory */
assertEquals( 0,
memory.size() );
/* make sure its just the handle1 for string1 that was propagated */
final List retracted = sink.getRetracted();
assertLength( 1,
retracted );