public void testJobSubmissionAndVerifyAllResults(Job testJob, String jobDesc) throws Throwable {
    JobId id = testJobSubmission(testJob);
    // check result are not null
    JobResult res = getJobResult(id);
    assertFalse("Had Exception : " + jobDesc, getJobResult(id).hadException());

    for (Map.Entry<String, TaskResult> entry : res.getAllResults().entrySet()) {

      assertFalse(
          "Had Exception (" + jobDesc + ") : " + entry.getKey(), entry.getValue().hadException());

      Assert.assertNotNull(
          "Result not null (" + jobDesc + ") : " + entry.getKey(), entry.getValue().value());
    }

    removeJob(id);
    waitForEventJobRemoved(id);
  }