assertTrue(invoker.activate(instance, null, "ABC".getBytes()));
assertTrue("instance was not activated", instance.isActivated);
assertEquals("ABC", instance.activationValue);
assertFalse("instance passivated before passivation method called", instance.isPassivated);
byte[] data = invoker.passivate(instance);
assertTrue("instance was not passivated", instance.isPassivated);
assertEquals("ABC", new String(data));
}
@Test