@Test
public void testErrorThenClearCallCount() {

  fireAnError();
  errorWitness.clearException();
  assertTrue("The cleared witness observer was not present", testWitnessListener
      .clearedWitnessObserver.isPresent());
  assertEquals("The cleared run count was not 1", 1, testWitnessListener.clearRunCount);
  assertEquals("Witness observer was not the same as the observer from the cleared event",
      witnessObserver, testWitnessListener.clearedWitnessObserver.get());
}