@Test
  public void testGetAllLocations() throws IOException {
    List<Location> remoteLocations = dexmaRestFacade.getAllLocations();     
    assertEquals(3,remoteLocations.size());
    Iterator<Location> itRemote = remoteLocations.iterator();    
    while (itRemote.hasNext()) {
      Location loc = itRemote.next();
      /*iteration over the local list. This operation is slow (O(N2)) but for test purposes
       * is more than enough
       */      
      Iterator<Location> itLocal = locations.iterator();
      boolean notFound = true;      
      while (itLocal.hasNext() && notFound) {        
        notFound = !loc.equals(itLocal.next());
      }
      assertEquals(notFound,false);
    }
  }