@@ -0,0 +1,2285 @@
+/*%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage io.prestosql.plugin.hive.azure;%0A%0Aimport org.testng.annotations.Test;%0A%0Aimport java.util.Set;%0Aimport java.util.function.BiConsumer;%0A%0Aimport static com.google.common.collect.Sets.difference;%0Aimport static org.testng.Assert.assertThrows;%0A%0Apublic class TestPrestoAzureConfigurationInitializer%0A%7B%0A    @Test%0A    public void testAdl()%0A    %7B%0A        testPropertyGroup(%0A                HiveAzureConfig::setAdlClientId,%0A                HiveAzureConfig::setAdlCredential,%0A                HiveAzureConfig::setAdlRefreshUrl);%0A    %7D%0A%0A    @Test%0A    public void testWasb()%0A    %7B%0A        testPropertyGroup(%0A                HiveAzureConfig::setWasbAccessKey,%0A                HiveAzureConfig::setWasbStorageAccount);%0A    %7D%0A%0A    @Test%0A    public void testAbfsAccessKey()%0A    %7B%0A        testPropertyGroup(%0A                HiveAzureConfig::setAbfsAccessKey,%0A                HiveAzureConfig::setAbfsStorageAccount);%0A    %7D%0A%0A    @SafeVarargs%0A    private static void testPropertyGroup(BiConsumer%3CHiveAzureConfig, String%3E... setters)%0A    %7B%0A        testPropertyGroup(Set.of(setters));%0A    %7D%0A%0A    private static void testPropertyGroup(Set%3CBiConsumer%3CHiveAzureConfig, String%3E%3E setters)%0A    %7B%0A        // All properties work together%0A        testProperties(setters);%0A%0A        // Dropping any one property fails%0A        for (var setter : setters) %7B%0A            assertThrows(() -%3E testProperties(difference(setters, Set.of(setter))));%0A        %7D%0A    %7D%0A%0A    private static void testProperties(Set%3CBiConsumer%3CHiveAzureConfig, String%3E%3E setters)%0A    %7B%0A        var config = new HiveAzureConfig();%0A        for (var setter : setters) %7B%0A            setter.accept(config, %22test value%22);%0A        %7D%0A        new PrestoAzureConfigurationInitializer(config);%0A    %7D%0A%7D%0A

Add tests for PrestoAzureConfigurationInitializer