@Override
  public CompletableFuture<T> toCompletableFuture()
  {
    return _task.toCompletionStage().toCompletableFuture();
  }
@Test
  public void testCreateStageFromRunnable() throws Exception
  {
    final String[] stringArr = new String[1];
    String testResult = "testCreateStageFromCompletableFuture";
    ParSeqBasedCompletionStage<Void> stageFromCompletionStage =
        _parSeqBasedCompletionStageFactory.buildStageFromRunnableAsync(() -> {
          stringArr[0] = testResult;
        });
    stageFromCompletionStage.toCompletableFuture().get(); //ensure completion
    Assert.assertEquals(stringArr[0], testResult);
  }