public void testActivateReturns() throws Exception
{
ActivateReturns prototype = new ActivateReturns();
LifecycleHelper invoker = new LifecycleHelper(prototype);
ActivateReturns instance = (ActivateReturns)invoker.newInstance();
assertNotNull("instantiation failed; null instance", instance);
assertNotSame("instantiation failed; returned prototype", prototype, instance);
assertFalse("instance activated before activation method called", instance.isActivated);
assertTrue(invoker.activate(instance, null, "ABC".getBytes()));