// the alternate mapping (See MappedReferenceMetaDataResolverDeployer.mapEjbs)
endpointAlternateMap.put("ejb/Ejb1InJar1", "ejb/ejb1.jar#Ejb1InJar1");
endpointAlternateMap.put("ejb/Ejb2InJar1", "ejb/ejb1.jar#Ejb2InJar1");
// A business-local mapping for Ejb1InJar1
endpointAlternateMap.put("ejb/ejb1.jar@"+EjbLinkIF.class.getName(), "ejb/ejb1.jar#Ejb1InJar1");
EndpointInfo info = resolver.getEndpointInfo("Ejb1InJar1", EndpointType.EJB, "ejb1.jar");
assertNotNull(info);
assertEquals("Ejb1InJar1", info.getName());
assertEquals("ejb1.jar", info.getPathName());
info = resolver.getEndpointInfo("../ejb1.jar#Ejb2InJar1", EndpointType.EJB, "ejb2.jar");
assertNotNull(info);
assertEquals("Ejb2InJar1", info.getName());
assertEquals("ejb1.jar", info.getPathName());
//
info = resolver.getEndpointInfo(EjbLinkIF.class, EndpointType.EJB, "ejb1.jar");
assertNotNull(info);
assertEquals("Ejb1InJar1", info.getName());
assertEquals("ejb1.jar", info.getPathName());
// Test finding a bean with only a bean name
info = resolver.getEndpointInfo("Ejb2InJar1", EndpointType.EJB, "ejb2.jar");
assertNotNull(info);
assertEquals("Ejb2InJar1", info.getName());
assertEquals("ejb1.jar", info.getPathName());
}