private <T> void validateList(List<T> aList, List<T> bList) {
    if ((aList == null || aList.isEmpty()) && (bList == null || bList.isEmpty())) {
      return;
    }
    Assert.assertEquals(aList.size(), bList.size());
    Iterator<T> origValuesIt = aList.iterator();
    Iterator<T> retValuesIt = bList.iterator();
    while (origValuesIt.hasNext()) {
      Assert.assertTrue(retValuesIt.hasNext());
      Assert.assertEquals(origValuesIt.next(), retValuesIt.next());
    }
  }
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