}
Dummy1 dummy = new Dummy1();
keyArr[2] = timeout.addTimeoutListener(dummy, 4000L, "timer-4000");
keyArr[3] = timeout.addTimeoutListener(dummy, 2000L, "timer-5500");
try { keyArr[3] = timeout.refreshTimeoutListener(keyArr[3], 5500L); } catch (XmlBlasterException e) { fail("Refresh failed: " + e.getMessage()); }
long diffT = keyArr[3].getMillis() - System.currentTimeMillis();
assertTrue("ERROR: refresh failed", (Math.abs(5500L - diffT) <= 30));
keyArr[0] = timeout.addTimeoutListener(dummy, 1000L, "timer-1000");
keyArr[1] = timeout.addTimeoutListener(dummy, 1000L, "timer-1000");