ConnectorDeployable deployable = new ConnectorDeployable(resource);
assertEquals(ModuleType.RAR, deployable.getType());
Set entrySet = new HashSet(Collections.list(deployable.entries()));
assertTrue(entrySet.contains("META-INF/ra.xml"));
assertTrue(entrySet.contains("activemq-ra-3.2.1.jar"));
DDBeanRoot root = deployable.getDDBeanRoot();
assertNotNull(root);
assertEquals(ModuleType.RAR, root.getType());
assertEquals(deployable, root.getDeployableObject());
// Create the DConfigBeanRoot
Connector15DCBRoot dcbRoot = new Connector15DCBRoot(root);
assertNotNull(dcbRoot.getXpaths());
assertEquals(1, dcbRoot.getXpaths().length);
assertEquals("connector", dcbRoot.getXpaths()[0]);
// Try the /connector element
ConnectorDCB connector = (ConnectorDCB) dcbRoot.getDConfigBean(root.getChildBean(dcbRoot.getXpaths()[0])[0]);
assertNotNull(connector);
// assertNull(connector.getConfigID());
// assertNull(connector.getInverseClassLoading());
// assertNull(connector.getParentID());
// assertNull(connector.getSuppressDefaultParentID());