title: Flex unit aysnc problem: Error: Asynchronous Event Received out of Order
body: <p>I am writing test cases to test function with flexunit 4. I am using aysnc method.
  But when I add two or more asyncHandlers to the instance. I meet the problem:  Error: Asynchronous Event Received out of Order. How to resolve this problem? Thanks.</p>
  
  <p>Code snippets:</p>
  
  <pre><code>[Test(order=1, async, description="synchronize content on line")]
      public function  testSynchronizeContentOnline():void
      {
          var passThroughData:Object = new Object();
  
          var asyncHandler1:Function = Async.asyncHandler(this, authFailureHandler, 60000, null, timeoutHandler);
          var asyncHandler:Function = Async.asyncHandler(this, authSuccessHandler, 60000, null, timeoutHandler);
  
          caseManager.addEventListener(CaseAuthEvent.AUTH_SUCCESS, 
              asyncHandler);
  
          caseManager.addEventListener(CaseAuthEvent.AUTH_FAILURE, 
              asyncHandler1);
          caseManager.authenticate("admin", "admin");
  
          trace('test');
      }
  
      private function timeoutHandler(event:Event):void 
      {
          Assert.fail( "Timeout reached before event");
      }
  
      private var authFailed:Boolean = false;
      private function authFailureHandler(event:CaseAuthEvent, passThroughData:Object):void
      {
          trace("authFailure:" + event.type);
          authFailed = true;
  
      }
  
      private var authSucceed:Boolean = false;
      private function authSuccessHandler(event:CaseAuthEvent, passThroughData:Object):void
      {
          trace("authSucceed:" + event.type);
          authSucceed = true;
          Assert.assertTrue(true);
  
      }
  </code></pre>