assertEquals(1, getValue(PENDING));
changeState(IScheduledTask.build(taskA.newBuilder().setStatus(PENDING)), ASSIGNED);
assertEquals(0, getValue(PENDING));
assertEquals(1, getValue(ASSIGNED));
taskA = makeTask(JOB_A, ASSIGNED, "hostA");
changeState(IScheduledTask.build(taskA.newBuilder().setStatus(ASSIGNED)), RUNNING);
assertEquals(0, getValue(ASSIGNED));
assertEquals(1, getValue(RUNNING));
changeState(IScheduledTask.build(taskA.newBuilder().setStatus(RUNNING)), FINISHED);
assertEquals(0, getValue(RUNNING));
assertEquals(1, getValue(FINISHED));