private void testRandomLocation(int locations, int njobs, UserGroupInformation ugi) throws Exception {
Configuration conf = new Configuration();
conf.setInt(JobCreator.SLEEPJOB_RANDOM_LOCATIONS, locations);
DebugJobProducer jobProducer = new DebugJobProducer(njobs, conf);
JobConf jconf = GridmixTestUtils.mrCluster.createJobConf(new JobConf(conf));
JobStory story;
int seq=1;
while ((story = jobProducer.getNextJob()) != null) {
GridmixJob gridmixJob = JobCreator.SLEEPJOB.createGridmixJob(jconf, 0,
story, new Path("ignored"), ugi, seq++);
gridmixJob.buildSplits(null);