   import flash.events.Event;
   import flash.events.StatusEvent;
 
+  import flashwavrecorder.wrappers.MicrophoneWrapper;
+  import flashwavrecorder.wrappers.SecurityWrapper;
+
   import mockolate.mock;
   import mockolate.received;
   import mockolate.runner.MockolateRule;
 
-  import mx.logging.Log;
-
-  import org.flexunit.asserts.assertTrue;
+  import org.flexunit.Assert;
 
   import org.flexunit.async.Async;
-
   import org.hamcrest.assertThat;
 
   public class MicrophonePermissionPanelTest {

      mock(microphone).method('isMuted').returns(true);
      var statusEvent:StatusEvent = new StatusEvent(StatusEvent.STATUS, true, false, "Microphone.Unmuted");
      _permissionPanel.showSimple();
      // expect
      Async.handleEvent(this, _permissionPanel, MicrophonePermissionPanel.MICROPHONE_ALLOWED, onMicrophoneAllowed);
      // when
      microphone.dispatchEvent(statusEvent);
    }

    protected function onMicrophoneAllowed(event:Event):void {
    }

  }
}
    public var microphone:MicrophoneWrapper;
    [Mock]
    public var panelObserver:SettingsPanelObserver;
    [Mock]
    public var security:SecurityWrapper;

    private var _permissionPanel:MicrophonePermissionPanel;

    [Before]
    public function setUp():void {
      mock(microphone).asEventDispatcher();
      _permissionPanel = new MicrophonePermissionPanel(microphone, panelObserver, security);
    }

    [Test]
