r[0] = new ProducerRunnable(queue, 674);
r[1] = new ProducerRunnable(queue, 458);
r[2] = new ConsumerRunnable(queue, 539);
r[3] = new ConsumerRunnable(queue, 593);
UtilThreadGroup threadGroup = new UtilThreadGroup(r);
threadGroup.run();
assertEquals(0, threadGroup.getFailureCount());
}
@Test (timeout=5000)
public void manyThreadsManyTasks() throws Exception {