assertEquals("UnsecureRunAsServletWithPrincipalNameAndRolesTarget", local8.getLink());
assertEquals(null, local8.getJndiName());
// mdr/ConsumesLink
assertEquals(3, jbossWeb.getMessageDestinationReferences().size());
MessageDestinationReferenceMetaData mref1 = jbossWeb.getMessageDestinationReferenceByName("mdr/ConsumesLink");
assertEquals("msgref1", mref1.getId());
assertEquals("mdr/ConsumesLink", mref1.getMessageDestinationRefName());
assertEquals("javax.jms.Queue", mref1.getType());
assertEquals(MessageDestinationUsageType.Consumes, mref1.getMessageDestinationUsage());
assertEquals("TestQueue", mref1.getLink());
// mdr/ConsumesProducesJNDIName
MessageDestinationReferenceMetaData mref3 = jbossWeb.getMessageDestinationReferenceByName("mdr/ConsumesProducesJNDIName");
assertEquals("msgref3", mref3.getId());
assertEquals("mdr/ConsumesProducesJNDIName", mref3.getMessageDestinationRefName());
assertEquals("javax.jms.Queue", mref3.getType());
assertEquals(MessageDestinationUsageType.ConsumesProduces, mref3.getMessageDestinationUsage());
assertEquals(null, mref3.getLink());
assertEquals("queue/A", mref3.getJndiName());
assertEquals("queue/A", mref3.getMappedName());
assertEquals(2, jbossWeb.getMessageDestinations().size());
MessageDestinationMetaData msgdest1 = jbossWeb.getMessageDestination("TestQueue");
assertEquals("msgdest1", msgdest1.getId());
assertEquals("A TestQueue destination", msgdest1.getDescriptionGroup().getDescription());