public static Storage getStorageType(String hiveSdLocation) {
        if (hiveSdLocation.startsWith(StorageType.S3.name().toLowerCase())) {
            return new S3Storage();
        } else if (hiveSdLocation.startsWith(StorageType.OSS.name().toLowerCase())) {
            return new OSSStorage();
        } else if (hiveSdLocation.startsWith(StorageType.COS.name().toLowerCase())) {
            return new COSStorage();
        } else {
            return new HDFSStorage(hiveSdLocation);
        }
    }
@Test
    void testStorageType() {
        STORAGE_MAP
                .entrySet()
                .forEach(
                        storageMapEntry -> {
                            Class<? extends Storage> expectedStorageClass =
                                    storageMapEntry.getValue();
                            Storage storage =
                                    StorageFactory.getStorageType(storageMapEntry.getKey());
                            Assertions.assertNotNull(storage);
                            Assertions.assertTrue(expectedStorageClass.isInstance(storage));
                        });
    }