cronOptions.setMaximumRetryIntervalSeconds(600);
cronOptions.setRetryExpirationIntervalSeconds(3500);
final String cronExpression = "0 0 * * * *";
cronOptions.setCronExpression(cronExpression);
WorkflowClock clock = workflowTest.getDecisionContext().getWorkflowClock();
clock.createTimer(SECONDS_HOUR * 24 * 7 + 1000);
// true constructor argument makes TryCatchFinally a daemon which causes it get cancelled after above timer firing
new TryCatchFinally(true) {
Throwable failure;