@Test
 public void testEvent(Consumer consumer, CowEventObserver observer) throws Throwable {
   Event<Cow> event = consumer.getEvent();
   Event<Cow> event1 = Utils.deserialize(Utils.serialize(event));
   Assert.assertTrue(checkEvent(event1, observer));
   Assert.assertTrue(checkEquality(event, event1));
 }
 @Test
 public void testInstance(Consumer consumer) throws Throwable {
   Instance<Cow> instance = consumer.getCow();
   Instance<Cow> instance1 = Utils.deserialize(Utils.serialize(instance));
   Assert.assertTrue(checkInstance(instance1));
   Assert.assertTrue(checkEquality(instance, instance1));
 }
 @Test
 public void testMethodInjectionPoint(MethodInjectionPointConsumer consumer) throws Throwable {
   Dog.reset();
   consumer.ping();
   InjectionPoint injectionPoint = Dog.getInjectionPoint();
   InjectionPoint injectionPoint1 = Utils.deserialize(Utils.serialize(injectionPoint));
   Assert.assertTrue(checkInjectionPoint(injectionPoint1, MethodInjectionPointConsumer.class));
   Assert.assertTrue(checkEquality(injectionPoint, injectionPoint1));
 }
 @Test
 public void testBeanManagerBean(BeanManager beanManager) throws Throwable {
   BeanManager beanManager1 = Utils.deserialize(Utils.serialize(beanManager));
   Assert.assertTrue(checkBeanManager(beanManager1));
   Assert.assertTrue(checkEquality(beanManager, beanManager1));
 }
 @Test
 public void testUserTransactionBean(UserTransaction userTransaction) throws Throwable {
   UserTransaction userTransaction1 = Utils.deserialize(Utils.serialize(userTransaction));
   Assert.assertTrue(checkUserTransaction(userTransaction1));
 }
 @Test
 @Category({Integration.class, Broken.class})
 public void testPrincipal(Principal principal) throws Throwable {
   Principal principal1 = Utils.deserialize(Utils.serialize(principal));
   Assert.assertTrue(checkPrincipal(principal1));
 }
 @Test
 public void testDefaultValidatorFactoryBean(ValidatorFactory validatorFactory) throws Throwable {
   ValidatorFactory validatorFactory1 = Utils.deserialize(Utils.serialize(validatorFactory));
   Assert.assertTrue(checkValidatorFactory(validatorFactory1));
 }
 @Test
 public void testDefaultValidatorBean(Validator validator) throws Throwable {
   Validator validator1 = Utils.deserialize(Utils.serialize(validator));
   Assert.assertTrue(checkValidator(validator1));
 }
 @Test
 public void testAllOnBean(Consumer consumer) throws Throwable {
   consumer.check();
   Consumer consumer1 = Utils.deserialize(Utils.serialize(consumer));
   consumer1.check();
 }