registered(ex);
registered(manager);
registered(provider);
// JBAS-8382 if (now - startDate) > Integer.MAX_VALUE and period == 1, then skip repeats can be negative and it causes wrong (too much) repetition
SingleScheduleProviderMBean pr = (SingleScheduleProviderMBean)
MBeanServerInvocationHandler.newProxyInstance(getServer(), provider,
SingleScheduleProviderMBean.class, false);
pr.setStartDate(String.valueOf(System.currentTimeMillis() - Integer.MAX_VALUE - 1));
pr.stop();
pr.start();
Thread.sleep(1000); // just wait for a while
check(ex, 0, 0); // No repetitions left because start date is in the past and could not be reached by Initial Repetitions * Schedule Period
}