@RunWith(ApplicationComposer.class)
public class EjbTimerImplSerializableTest {
@Test
public void serializeDeserialize() throws Exception {
final EjbTimerService timer = timerService();
assertNotNull(timer);
assertThat(timer, instanceOf(EjbTimerServiceImpl.class));
final byte[] serial = serialize(timer);
final EjbTimerService timerDeserialized = (EjbTimerService) deserialize(serial);
assertThat(timerDeserialized, instanceOf(EjbTimerServiceImpl.class));
assertThat(((EjbTimerServiceImpl) timerDeserialized).getScheduler(), notNullValue());
assertEqualsByReflection(timer, timerDeserialized, "deployment");