@After
 public void after() throws ProActiveException {
   if (remoteObjectDeployer != null) {
     remoteObjectDeployer.terminate();
     remoteObjectDeployer = null;
     stub = null;
   }
 }
  @Before
  public void before() throws ProActiveException, URISyntaxException {
    remoteObjectDeployer = new NamingServiceDeployer();

    final String[] urls = remoteObjectDeployer.getNamingServiceURLs();
    // PROACTIVE-1303 : we replace the default url to test that it can switch to the second
    urls[0] = CentralPAPropertyRepository.PA_COMMUNICATION_PROTOCOL.getValue() + "://foo";
    stub = NamingService.createNamingServiceStub(urls);
  }