triggerDataMap.put(EjbTimeoutJob.EJB_TIMERS_SERVICE, timerService);
triggerDataMap.put(EjbTimeoutJob.TIMER_DATA, data);
final byte[] serial = serialize(triggerDataMap);
final JobDataMap map = (JobDataMap) deserialize(serial);
assertTrue(map.containsKey(EjbTimeoutJob.EJB_TIMERS_SERVICE));
assertTrue(map.containsKey(EjbTimeoutJob.TIMER_DATA));
}
private static Object deserialize(final byte[] serial) throws Exception {
final ByteArrayInputStream bais = new ByteArrayInputStream(serial);