private boolean compare(List<String> remoteModules,List<String> expectedModules){
  Collections.sort(remoteModules);
  Collections.sort(expectedModules);
  return remoteModules.equals(expectedModules);
}

private boolean compare ( List < String > remoteModules , List < String > expectedModules ) { Collections . sort ( remoteModules ) ; Collections . sort ( expectedModules ) ; return remoteModules . equals ( expectedModules ) ; }
return true if the both lists contain the same content ( order doesn ' t matter )
