ModulesMetaData modules = ear.getModules();
assertEquals(6, modules.size());
ModuleMetaData connector = modules.get(0);
assertEquals("connector0", connector.getId());
assertEquals("META-INF/alt-ra.xml", connector.getAlternativeDD());
ConnectorModuleMetaData connectorMD = (ConnectorModuleMetaData) connector.getValue();
assertEquals("rar0.rar", connectorMD.getConnector());
ModuleMetaData java = modules.get(1);
assertEquals("java0", java.getId());
assertEquals("META-INF/alt-application-client.xml", java.getAlternativeDD());
JavaModuleMetaData javaMD = (JavaModuleMetaData)java.getValue();
assertEquals("client0.jar", javaMD.getClientJar());