jbossMetaData.merge(null, result);
ApplicationMetaData appData = new ApplicationMetaData(jbossMetaData);
// Validate the assembly descriptor permissions
IAssemblyDescriptorMetaData admd = result.getAssemblyDescriptor();
MethodPermissionsMetaData allPerms = admd.getMethodPermissions();
assertEquals("ejb-jar has 4 method-permissions", 4, allPerms.size());
// Validate StatelessSession bean permission count
IEnterpriseBeanMetaData ebmd = result.getEnterpriseBeans().get("StatelessSession");
MethodPermissionsMetaData beanPerms = ebmd.getMethodPermissions();
assertEquals("StatelessSession has 3 method-permissions", 3, beanPerms.size());
// Now validate the method matching logic
String echo = "Echo";
String echoLocal = "EchoLocal";
String internal = "InternalRole";