@Test(expected = WorkflowInitializationException.class)
public void shouldFailComputeNextTrigger() throws Exception {

  when(transaction.workflow(HOURLY_WORKFLOW.id()))
      .thenReturn(Optional.of(HOURLY_WORKFLOW));
  workflowInitializer.store(HOURLY_WORKFLOW_WITH_INVALID_OFFSET, PASS);
}