BasicThreadPool pool = new BasicThreadPool();
try
{
pool.runTask(new TestTask(BASIC, "test1"));
pool.runTask(new TestTask(BASIC, "test2"));
pool.runTask(new TestTask(BASIC, "test3"));
completed.wait(3);
HashSet expected = makeExpected(new Object[] {"test1", "test2", "test3"});
assertEquals(expected, accepted.tasks);
assertEquals(expected, started.tasks);
assertEquals(expected, completed.tasks);