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()));
assertTrue("instance was not activated", instance.isActivated);
assertEquals("ABC", instance.activationValue);
ActivateReturns.returnValue = false;
assertFalse(invoker.activate(instance, null, "DEF".getBytes()));