private void FailOnPause()
 {
     try
     {
         stateManager.Pause();
         Assert.Fail();
     }
     catch (IllegalStateTransitionException)
     {
         // Expected
     }
 }
 /// <summary>
 /// Pause the sending of events after a Adapter has been started.
 /// </summary>
 /// <throws>EPException if this Adapter has already been stopped</throws>
 public virtual void Pause()
 {
     StateManager.Pause();
 }