assertEqualsByReflection(data, dataDeserialized, "info");
}
@Test
public void jobDataMapSerial() throws Exception {
final CalendarTimerData data = timerData();
final EjbTimerServiceImpl timerService = (EjbTimerServiceImpl) timerService();
data.setScheduler(timerService.getScheduler());
// small hack for the test
final Field preventSynch = TimerData.class.getDeclaredField("synchronizationRegistered");
preventSynch.setAccessible(true);
preventSynch.set(data, true);
data.newTimer();
final AbstractTrigger<?> trigger = (AbstractTrigger<?>) data.getTrigger();
trigger.setJobName("my-job");
trigger.setJobGroup("my-group");
final JobDataMap triggerDataMap = trigger.getJobDataMap();
triggerDataMap.put(EjbTimeoutJob.EJB_TIMERS_SERVICE, timerService);