protected void waitForTerminate() throws InterruptedException, InvocationTargetException {
    setProcessCanTerminate(true);

    Assert.assertTrue(
        "Debugger didn't terminated within timeout\nOutput:" + output(),
        waitFor(myTerminateSemaphore));
    XDebuggerTestUtil.waitForSwing();
  }
  protected void waitForPause() throws InterruptedException, InvocationTargetException {
    Assert.assertTrue(
        "Debugger didn't stopped within timeout\nOutput:" + output(), waitFor(myPausedSemaphore));

    XDebuggerTestUtil.waitForSwing();
  }