}
@Test
public void betaNodeMarking() {
TermTuple t = new TermTuple( DependencySet.INDEPENDENT );
AlphaNode a = new AlphaNode( t );
BetaNode b1 = new BetaNode( a, a, false );
BetaNode b2 = new BetaNode( a, a, false );
BetaNode b3 = new BetaNode( b1, b2, false );
BetaNode b4 = new BetaNode( b3, b3, false );
assertTrue( b1.isDirty() );
assertTrue( b2.isDirty() );
assertTrue( b3.isDirty() );
assertTrue( b4.isDirty() );
b1.join();
b2.join();
b3.join();
b4.join();
assertFalse( b1.isDirty() );
assertFalse( b2.isDirty() );
assertFalse( b3.isDirty() );
assertFalse( b4.isDirty() );
a.markDirty();
assertTrue( b1.isDirty() );
assertTrue( b2.isDirty() );
assertTrue( b3.isDirty() );
assertTrue( b4.isDirty() );