RunningJob[] jobs = new RunningJob[5];
for (int i=0;i<jobs.length;i++)
{
jobs[i]=new RunningJob();
tp.dispatch(jobs[i]);
<BUG>}
Thread.sleep(200);
assertEquals(5,tp.getThreads());
Thread.sleep(1000);
assertEquals(5,tp.getThreads());</BUG>
job=new RunningJob();

RunningJob[] jobs = new RunningJob[5];
for (int i=0;i<jobs.length;i++)
{
jobs[i]=new RunningJob();
tp.dispatch(jobs[i]);
}
waitForIdle(tp,0);
waitForThreads(tp,5);
