tp.setMaximumPoolSize(1);
TT tt = new TT();
TimeoutFactory tf = new TimeoutFactory(tp);
for (int i = 0; i < times; i++)
{
tf.schedule(0, (TimeoutTarget)tt);
}
Thread.sleep(500);
getLog().debug("Executed: " + count.get() + ", scheduled: " + times);
assertTrue("Executed " + count.get() + " < scheduled " + times, count.get() < times);
}