@Deprecated
    public boolean cancel(Timer timer)
    {
        assert (timer.parent == this);
        return timer.cancel();
    }
@Test
    public void testCancel()
    {
        long fullTimeout = 100;
        Timers.Timer timer = timers.add(fullTimeout, handler, invoked);

        // cancel timer
        long timeout = timers.timeout();
        boolean ret = timer.cancel();
        assertThat(ret, is(true));

        ZMQ.msleep(timeout * 2);
        int rc = timers.execute();
        assertThat(rc, is(0));
        assertThat(invoked.get(), is(false));
    }