private KiteBaseTest buildTest()
      throws ClassNotFoundException, IllegalAccessException, InstantiationException, IOException {
    String testJar =
        testConfig.getImplJar() == null ? null : JAR_DOWNLOAD_PATH + testConfig.getName() + ".jar";
    KiteBaseTest test = testConfig.isJavascript()
        ? new KiteJsTest(testConfig.getTestImpl(), testConfig.getImplJar())
        : (KiteBaseTest) instantiate(testConfig.getTestImpl(), testJar);

    test.setTestJar(testJar);
    
    test.setTestConfig(testConfig);
    
    test.setLogger(testConfig.getLogger());
    
    test.setReporter(this.testConfig.getReporter());
    
    test.setNetworkInstrumentation(testConfig.getNetworkInstrumentation());
    test.setDescription(testConfig.getDescription());
    test.setRoomManager(testConfig.getRoomManager());    
    
    test.setTuple(tuple);
    test.setCurrentIteration(this.id);
    test.setDelayForClosing(testConfig.getDelayForClosing());
    test.setGenerateReport(testConfig.generateReport());
    test.setPhases(this.phases);

    test.setParentSuite(testSuite.getParentSuite());
    test.setSuite(testSuite);

    if (testConfig.getPayload() != null) {
      JsonObject payload = (JsonObject) Json
          .createReader(new ByteArrayInputStream(testConfig.getPayload().getBytes())).read();
      test.setPayload(payload);
    }

    // todo : to be advised
    if (testConfig.isLoadTest()) {
      test.setLoadTest(true);
      String simpleHubId = "";
      try {
        simpleHubId = new URL(tuple.get(0).getPaas().getUrl()).getHost();
      } catch (Exception e) {
        simpleHubId = tuple.get(0).getPaas().getUrl();
      }
      test.setName(simpleHubId + (id == 0 ? "" : " " + id));
    }

    return test;
  }
Builds the test.

@return the kite base test
@throws ClassNotFoundException the class not found exception
@throws IllegalAccessException the illegal access exception
@throws InstantiationException the instantiation exception
@throws IOException Signals that an I/O exception has occurred.
KITE-Engine/src/main/java/org/webrtc/kite/TestManager.java