App { public static void main(String[] args) { Service service = ServiceLocator.getService("jndi/serviceA"); service.execute(); service = ServiceLocator.getService("jndi/serviceB"); service.execute(); service = ServiceLocator.getService("jndi/serviceA"); service.execute(); service = ServiceLocator.getService("jndi/serviceA"); service.execute(); }  static void main(String[] args);  }
@Test public void test() { String[] args = {}; App.main(args); }