public static void addMaskForCredential(Map<String, String> params) {
        params.computeIfPresent(CloudConfigurationConstants.AWS_S3_ACCESS_KEY, (key, value) -> CREDENTIAL_MASK);
        params.computeIfPresent(CloudConfigurationConstants.AWS_S3_SECRET_KEY, (key, value) -> CREDENTIAL_MASK);
        params.computeIfPresent(CloudConfigurationConstants.AZURE_BLOB_SHARED_KEY, (key, value) -> CREDENTIAL_MASK);
        params.computeIfPresent(CloudConfigurationConstants.AZURE_BLOB_SAS_TOKEN, (key, value) -> CREDENTIAL_MASK);
    }
@Test
    public void testAddMaskForCredential() {
        Map<String, String> storageParams = new HashMap<>();
        storageParams.put(AWS_S3_ACCESS_KEY, "accessKey");
        storageParams.put(AWS_S3_SECRET_KEY, "secretKey");
        storageParams.put(AZURE_BLOB_SAS_TOKEN, "sasToken");
        storageParams.put(AZURE_BLOB_SHARED_KEY, "sharedKey");
        Deencapsulation.invoke(StorageVolume.class, "addMaskForCredential", storageParams);
        Assert.assertEquals(StorageVolume.CREDENTIAL_MASK, storageParams.get(AWS_S3_ACCESS_KEY));
        Assert.assertEquals(StorageVolume.CREDENTIAL_MASK, storageParams.get(AWS_S3_SECRET_KEY));
        Assert.assertEquals(StorageVolume.CREDENTIAL_MASK, storageParams.get(AZURE_BLOB_SAS_TOKEN));
        Assert.assertEquals(StorageVolume.CREDENTIAL_MASK, storageParams.get(AZURE_BLOB_SHARED_KEY));
    }