verify(eventBus, never()).publish(isA(EventMessage.class));
}
@Test
public void testCancelJob() throws SchedulerException, InterruptedException {
Saga mockSaga = mock(Saga.class);
when(mockSaga.getSagaIdentifier()).thenReturn(UUID.randomUUID().toString());
ScheduleToken token = testSubject.schedule(new Duration(1000), new StubEvent());
assertEquals(1, scheduler.getJobKeys(GroupMatcher.<JobKey>groupEquals(GROUP_ID)).size());
testSubject.cancelSchedule(token);
assertEquals(0, scheduler.getJobKeys(GroupMatcher.<JobKey>groupEquals(GROUP_ID)).size());
scheduler.shutdown(true);