@Test(expected = OperaRunnerException.class)
 public void testShutdownLauncher() {
   runner = new OperaLauncherRunner(settings);
   runner.shutdown();
   // Expecting OperaRunnerException as we tried to start Opera when launcher isn't running
   runner.startOpera();
 }
 @Test
 public void testStartAndStopOpera() {
   runner = new OperaLauncherRunner(settings);
   runner.startOpera();
   assertTrue(runner.isOperaRunning());
   runner.stopOpera();
   assertFalse(runner.isOperaRunning());
 }
 @Test
 // TODO(andreastt): Trigger something which actually generates a crashlog
 public void testGetOperaDefaultCrashlog() {
   runner = new OperaLauncherRunner(settings);
   runner.startOpera();
   String crashlog = runner.getOperaCrashlog();
   assertNull(crashlog);
 }
  @Test
  @Ignore(products = DESKTOP, value = "mzajaczkowski_watir_1_cleaned contains fix for this")
  public void testStartAndStopOperaTenTimes() {
    runner = new OperaLauncherRunner(settings);

    for (int i = 0; i < 10; i++) {
      runner.startOpera();
      assertTrue(runner.isOperaRunning());
      runner.stopOpera();
      assertFalse(runner.isOperaRunning());
    }

    runner.shutdown();
  }
 @Test
 public void testConstructorWithSettingsArguments() {
   runner = new OperaLauncherRunner(settings);
   runner.startOpera();
   assertTrue(runner.isOperaRunning());
 }