JobConf conf = mr.createJobConf();
SleepJob job = new SleepJob();
job.setConf(conf);
int numMapTasks = 3;
int numReduceTasks = 2;
job.run(numMapTasks, numReduceTasks, 10000, 1, 10000, 1);
synchronized (instr) {
//after the job completes, incr and decr should be equal
assertEquals(instr.incrOccupiedMapSlots,
instr.decrOccupiedMapSlots);