@Test
  public void testGetAllDeployments() throws IOException {
    List<Deployment> remoteDeployments = dexmaRestFacade.getAllDeployments();     
    assertEquals(1,remoteDeployments.size());
    Iterator<Deployment> itRemote = remoteDeployments.iterator();    
    while (itRemote.hasNext()) {
      Deployment dep = itRemote.next();
      /*iteration over the local list. This operation is slow (O(N2)) but for test purposes
       * is more than enough - just 1 deployment!-
       */      
      Iterator<Deployment> itLocal = deployments.iterator();
      boolean notFound = true;     
      
      while (itLocal.hasNext() && notFound) {        
        notFound = !dep.equals(itLocal.next());
      }
      assertEquals(notFound,false);
    }
  }