App { public static void main(String[] args) { BusinessDelegate businessDelegate = new BusinessDelegate(); BusinessLookup businessLookup = new BusinessLookup(); businessLookup.setEjbService(new EjbService()); businessLookup.setJmsService(new JmsService()); businessDelegate.setLookupService(businessLookup); businessDelegate.setServiceType(ServiceType.EJB); Client client = new Client(businessDelegate); client.doTask(); businessDelegate.setServiceType(ServiceType.JMS); client.doTask(); }  static void main(String[] args);  }
@Test public void test() throws IOException { String[] args = {}; App.main(args); }