@Test
 public void testCreateDestination() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   MessageDrivenBeanType<TestDescriptorImpl> type =
       new MessageDrivenBeanTypeImpl<TestDescriptorImpl>(
           provider, "message-driven-beanType", provider.getRootNode());
   type.setCreateDestination(true);
   assertTrue(type.isCreateDestination());
 }
 @Test
 public void testActivationConfig() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   MessageDrivenBeanType<TestDescriptorImpl> type =
       new MessageDrivenBeanTypeImpl<TestDescriptorImpl>(
           provider, "message-driven-beanType", provider.getRootNode());
   type.activationConfig().up();
   type.removeActivationConfig();
   assertNull(provider.getRootNode().getSingle("activation-config"));
 }
 @Test
 public void testIgnoreDependency() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   MessageDrivenBeanType<TestDescriptorImpl> type =
       new MessageDrivenBeanTypeImpl<TestDescriptorImpl>(
           provider, "message-driven-beanType", provider.getRootNode());
   type.ignoreDependency().up();
   type.removeIgnoreDependency();
   assertNull(provider.getRootNode().getSingle("ignore-dependency"));
 }
 @Test
 public void testEjbTimeoutIdentity() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   MessageDrivenBeanType<TestDescriptorImpl> type =
       new MessageDrivenBeanTypeImpl<TestDescriptorImpl>(
           provider, "message-driven-beanType", provider.getRootNode());
   type.ejbTimeoutIdentity().up();
   type.removeEjbTimeoutIdentity();
   assertNull(provider.getRootNode().getSingle("ejb-timeout-identity"));
 }
 @Test
 public void testMethodAttributes() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   MessageDrivenBeanType<TestDescriptorImpl> type =
       new MessageDrivenBeanTypeImpl<TestDescriptorImpl>(
           provider, "message-driven-beanType", provider.getRootNode());
   type.methodAttributes().up();
   type.removeMethodAttributes();
   assertNull(provider.getRootNode().getSingle("method-attributes"));
 }
 @Test
 public void testResourceEnvRefType() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   ResourceEnvRefType<TestDescriptorImpl> type =
       new ResourceEnvRefTypeImpl<TestDescriptorImpl>(
           provider, "resource-env-refType", provider.getRootNode());
   type.setResourceEnvRefType("test");
   assertEquals(type.getResourceEnvRefType(), "test");
   type.removeResourceEnvRefType();
   assertNull(type.getResourceEnvRefType());
 }
 @Test
 public void testInterceptorClass() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   InterceptorType<TestDescriptorImpl> type =
       new InterceptorTypeImpl<TestDescriptorImpl>(
           provider, "interceptorType", provider.getRootNode());
   type.setInterceptorClass("test");
   assertEquals(type.getInterceptorClass(), "test");
   type.removeInterceptorClass();
   assertNull(type.getInterceptorClass());
 }
 @Test
 public void testMdbPasswd() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   MessageDrivenBeanType<TestDescriptorImpl> type =
       new MessageDrivenBeanTypeImpl<TestDescriptorImpl>(
           provider, "message-driven-beanType", provider.getRootNode());
   type.setMdbPasswd("test");
   assertEquals(type.getMdbPasswd(), "test");
   type.removeMdbPasswd();
   assertNull(type.getMdbPasswd());
 }
 @Test
 public void testAroundTimeout() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   InterceptorType<TestDescriptorImpl> type =
       new InterceptorTypeImpl<TestDescriptorImpl>(
           provider, "interceptorType", provider.getRootNode());
   type.aroundTimeout().up();
   type.aroundTimeout().up();
   assertTrue(type.getAroundTimeoutList().size() == 2);
   type.removeAllAroundTimeout();
   assertTrue(type.getAroundTimeoutList().size() == 0);
 }
 @Test
 public void testJndiRef() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   MessageDrivenBeanType<TestDescriptorImpl> type =
       new MessageDrivenBeanTypeImpl<TestDescriptorImpl>(
           provider, "message-driven-beanType", provider.getRootNode());
   type.jndiRef().up();
   type.jndiRef().up();
   assertTrue(type.getJndiRefList().size() == 2);
   type.removeAllJndiRef();
   assertTrue(type.getJndiRefList().size() == 0);
 }
 @Test
 public void testDescription() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   ResourceEnvRefType<TestDescriptorImpl> type =
       new ResourceEnvRefTypeImpl<TestDescriptorImpl>(
           provider, "resource-env-refType", provider.getRootNode());
   type.setDescription("value1");
   type.setDescription("value2");
   type.setDescriptionList("value3", "value4");
   assertTrue(type.getDescriptionList().size() == 4);
   assertEquals(type.getDescriptionList().get(0), "value1");
   assertEquals(type.getDescriptionList().get(1), "value2");
   assertEquals(type.getDescriptionList().get(2), "value3");
   assertEquals(type.getDescriptionList().get(3), "value4");
   type.removeAllDescription();
   assertTrue(type.getDescriptionList().size() == 0);
 }
 @Test
 public void testDepends() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   MessageDrivenBeanType<TestDescriptorImpl> type =
       new MessageDrivenBeanTypeImpl<TestDescriptorImpl>(
           provider, "message-driven-beanType", provider.getRootNode());
   type.setDepends("value1");
   type.setDepends("value2");
   type.setDependsList("value3", "value4");
   assertTrue(type.getDependsList().size() == 4);
   assertEquals(type.getDependsList().get(0), "value1");
   assertEquals(type.getDependsList().get(1), "value2");
   assertEquals(type.getDependsList().get(2), "value3");
   assertEquals(type.getDependsList().get(3), "value4");
   type.removeAllDepends();
   assertTrue(type.getDependsList().size() == 0);
 }
 @Test
 public void testRoleName() throws Exception {
   TestDescriptorImpl provider = new TestDescriptorImpl("test");
   AuthConstraintType<TestDescriptorImpl> type =
       new AuthConstraintTypeImpl<TestDescriptorImpl>(
           provider, "auth-constraintType", provider.getRootNode());
   type.setRoleName("value1");
   type.setRoleName("value2");
   type.setRoleNameList("value3", "value4");
   assertTrue(type.getRoleNameList().size() == 4);
   assertEquals(type.getRoleNameList().get(0), "value1");
   assertEquals(type.getRoleNameList().get(1), "value2");
   assertEquals(type.getRoleNameList().get(2), "value3");
   assertEquals(type.getRoleNameList().get(3), "value4");
   type.removeAllRoleName();
   assertTrue(type.getRoleNameList().size() == 0);
 }