private void waitForTestThreads() {
   // wait for all threads to complete
   for (Thread thread : threads) {
     try {
       thread.join();
     } catch (InterruptedException e) {
       throw new RuntimeException(e);
     }
   }
   test.testComplete();
   this.actualTestEndTime = now();
 }