@Test
public void testJobDispatchingFairness() throws Exception {

  Job j = serviceRegistryJpaImpl.createJob(TEST_HOST, TEST_SERVICE_FAIRNESS, TEST_OPERATION, null, null, true, null, 1.0f);
  assertHostloads(j, 0.0f, 0.0f, 1.0f);
  j = serviceRegistryJpaImpl.createJob(TEST_HOST, TEST_SERVICE_FAIRNESS, TEST_OPERATION, null, null, true, null, 1.0f);
  assertHostloads(j, 0.0f, 1.0f, 1.0f);
  j = serviceRegistryJpaImpl.createJob(TEST_HOST, TEST_SERVICE_FAIRNESS, TEST_OPERATION, null, null, true, null, 1.0f);
  assertHostloads(j, 1.0f, 1.0f, 1.0f);
  j = serviceRegistryJpaImpl.createJob(TEST_HOST, TEST_SERVICE_FAIRNESS, TEST_OPERATION, null, null, true, null, 1.0f);
  assertHostloads(j,1.0f, 1.0f, 2.0f);
  j = serviceRegistryJpaImpl.createJob(TEST_HOST, TEST_SERVICE_FAIRNESS, TEST_OPERATION, null, null, true, null, 1.0f);
  assertHostloads(j, 1.0f, 1.0f, 3.0f);
  j = serviceRegistryJpaImpl.createJob(TEST_HOST, TEST_SERVICE_FAIRNESS, TEST_OPERATION, null, null, true, null, 1.0f);
  assertHostloads(j, 1.0f, 2.0f, 3.0f);
  j = serviceRegistryJpaImpl.createJob(TEST_HOST, TEST_SERVICE_FAIRNESS, TEST_OPERATION, null, null, true, null, 1.0f);
  assertHostloads(j,1.0f, 2.0f, 4.0f);
}