@Test
  public void throwFailExceptionWithS3StorageIsRootPath() {
    StorageDescriptor sd = new StorageDescriptor();
    sd.setLocation("s3a://bucket/");
    Assert.assertFalse(MetaStoreUtils.validateTblStorage(sd));

    sd.setLocation("s3a://bucket");
    Assert.assertFalse(MetaStoreUtils.validateTblStorage(sd));

    sd.setLocation("s3a://bucket/other_path");
    Assert.assertTrue(MetaStoreUtils.validateTblStorage(sd));
  }
Test getPartitionspecsGroupedByStorageDescriptor() multiple partitions:
<ul>
  <li>Partition with null SD</li>
  <li>Two partitions under the table location</li>
  <li>One partition outside of table location</li>
</ul>
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/utils/TestMetaStoreServerUtils.java