Method: public void prune(Fink other) { if (random.nextInt( 2 )== 0) { this.lastPruned = true; other.prunedBy(this); } else this.lastPruned = false; } Test call: setUp(); tinoTest.prune(otherFink); assertTrue( "I pruned other", tinoTest.lastPruned() == false); }