EJBLocatorFactory { public static EJBLocator getEJBLocator() { try { Class.forName("org.apache.openejb.config.AnnotationDeployer"); Class.forName("org.apache.openejb.jee.SessionBean"); Class.forName("org.apache.xbean.finder.ClassFinder"); return new OpenEJBLocator(); } catch (Exception e) { return new EJBLocationUnavailable(); } }  static EJBLocator getEJBLocator();  }
@Test public void testGetEJBLocator() { EJBLocator locator = EJBLocatorFactory.getEJBLocator(); assertNotNull(locator); assertTrue(locator.getClass().getName(), locator instanceof OpenEJBLocator); }