@org.junit.After
 public void undeployHelloWorldComponent() {
   try {
     ws.unExposeComponentAsWebService("server", new String[] {"hello-world"});
     ws.unExposeComponentAsWebService(this.comp, "server2");
     wsc.unExposeComponentAsWebService("server3", new String[] {"hello-world"});
     wsc.unExposeComponentAsWebService("server4");
   } catch (Exception e) {
     e.printStackTrace();
     assertTrue(false);
   }
 }
  @org.junit.Before
  public void deployHelloWorldComponent() {

    try {
      url = AbstractWebServicesFactory.getLocalUrl();

      Component boot = Utils.getBootstrapComponent();

      GCMTypeFactory tf = GCM.getGCMTypeFactory(boot);
      GenericFactory cf = GCM.getGenericFactory(boot);

      ComponentType typeComp =
          tf.createFcType(
              new InterfaceType[] {
                tf.createFcItfType(
                    "hello-world", HelloWorldItf.class.getName(), false, false, false),
                tf.createFcItfType(
                    "good-bye-world", GoodByeWorldItf.class.getName(), false, false, false)
              });

      String controllersConfigFileLocation =
          AbstractPAWebServicesControllerImpl.getControllerFileUrl("cxf").getPath();
      ControllerDescription cd =
          new ControllerDescription(
              "composite", Constants.PRIMITIVE, controllersConfigFileLocation);
      comp =
          cf.newFcInstance(
              typeComp, cd, new ContentDescription(HelloWorldComponent.class.getName(), null));

      GCM.getGCMLifeCycleController(comp).startFc();

      // Deploying the service in the Active Object way
      WebServicesFactory wsf = AbstractWebServicesFactory.getWebServicesFactory("cxf");
      ws = wsf.getWebServices(url);
      ws.exposeComponentAsWebService(comp, "server", new String[] {"hello-world"});
      ws.exposeComponentAsWebService(comp, "server2");

      // Deploying the service using the web service controller
      wsc =
          org.objectweb.proactive.extensions.webservices.component.Utils.getPAWebServicesController(
              comp);
      wsc.initServlet();
      wsc.setUrl(url);
      wsc.exposeComponentAsWebService("server3", new String[] {"hello-world"});
      wsc.exposeComponentAsWebService("server4");

    } catch (Exception e) {
      e.printStackTrace();
      assertTrue(false);
    }
  }