@Test
public void Should_restoreEntryAndCancelItWhenItIsTooLateWhenItMayBeTooLate()
        throws Exception {

    when(entry.getState()).thenReturn(IOC.resolve(Keys.getOrAdd("info.smart_tools.smartactors.iobject.iobject.IObject"),
            "{'time':'2000-10-10T00:50:15','neverTooLate':false}".replace('\'','"')));
    ISchedulingStrategy strategy = new OnceSchedulingStrategy();
    strategy.restore(entry);
    verify(entry).cancel();
}