private void verifyLocations(List<Partition> origPartitions, StorageDescriptor sharedSD,
      List<PartitionWithoutSD> partitionWithoutSDS) {
    int i=0;
    for (Partition origPart : origPartitions) {
      // in case of location sharedSD has the base location and partition has relative location
      Assert.assertEquals("Location does not match", origPart.getSd().getLocation(),
          sharedSD.getLocation() + partitionWithoutSDS.get(i).getRelativePath());
      Assert.assertNull("values were not requested but are still set",
          partitionWithoutSDS.get(i).getValues());
      Assert.assertNull("Parameters were not requested but are still set",
          partitionWithoutSDS.get(i).getParameters());
      i++;
    }
  }
Confirms if the partitionWithoutSD object at partitionWithoutSDSIndex index has all the
projected fields set to values which are same as the ones set in origPartitions
@param projectedFields
@param sharedSD
@param partitionWithoutSDS
@param partitionWithoutSDSIndex
@throws IllegalAccessException
@throws InvocationTargetException
@throws NoSuchMethodException
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestGetPartitionsUsingProjectionAndFilterSpecs.java