App { public static void main(String[] args) { BusinessDelegate businessDelegate = new BusinessDelegate(); 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() { String[] args = {}; App.main(args); }