@Test
 public void singleSequence() {
   CountedBehavior goal = new CountedBehavior(BehaviorStatus.SUCCESS);
   Sequence p = Sequence.createSequence(goal);
   test.addGoal(p, 1);
   test.run();
   assertThat("Reset count", goal.resetCount, is(1));
   assertThat("Run count", goal.runCount, is(1));
   assertThat("Should execute count", goal.shouldExecuteCount, is(1));
 }
 @Test
 public void failureSequence() {
   CountedBehavior goal = new CountedBehavior(BehaviorStatus.FAILURE);
   CountedBehavior goal2 = new CountedBehavior(BehaviorStatus.SUCCESS);
   Sequence p = Sequence.createRetryingSequence(goal, goal2);
   test.addGoal(p, 1);
   test.run();
   test.run();
   assertThat("Reset count", goal.resetCount, is(1));
   assertThat("Run count", goal.runCount, is(1));
   assertThat("Should execute count", goal.shouldExecuteCount, is(1));
   assertThat("Reset count2", goal2.resetCount, is(1));
   assertThat("Run count2", goal2.runCount, is(1));
   assertThat("Should execute count2", goal2.shouldExecuteCount, is(1));
 }