@@ -0,0 +1,2638 @@
+/*%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.server;%0A%0Aimport com.google.common.collect.ImmutableMap;%0Aimport org.testng.annotations.Test;%0A%0Aimport java.util.Map;%0A%0Aimport static io.airlift.configuration.testing.ConfigAssertions.assertFullMapping;%0Aimport static io.airlift.configuration.testing.ConfigAssertions.assertRecordedDefaults;%0Aimport static io.airlift.configuration.testing.ConfigAssertions.recordDefaults;%0A%0Apublic class TestInternalCommunicationConfig%0A%7B%0A    @Test%0A    public void testDefaults()%0A    %7B%0A        assertRecordedDefaults(recordDefaults(InternalCommunicationConfig.class)%0A                .setHttpsRequired(false)%0A                .setKeyStorePath(null)%0A                .setKeyStorePassword(null)%0A                .setTrustStorePath(null)%0A                .setTrustStorePassword(null)%0A                .setKerberosEnabled(false)%0A                .setKerberosUseCanonicalHostname(true));%0A    %7D%0A%0A    @Test%0A    public void testExplicitPropertyMappings()%0A    %7B%0A        Map%3CString, String%3E properties = new ImmutableMap.Builder%3CString, String%3E()%0A                .put(%22internal-communication.https.required%22, %22true%22)%0A                .put(%22internal-communication.https.keystore.path%22, %22key-path%22)%0A                .put(%22internal-communication.https.keystore.key%22, %22key-key%22)%0A                .put(%22internal-communication.https.truststore.path%22, %22trust-path%22)%0A                .put(%22internal-communication.https.truststore.key%22, %22trust-key%22)%0A                .put(%22internal-communication.kerberos.enabled%22, %22true%22)%0A                .put(%22internal-communication.kerberos.use-canonical-hostname%22, %22false%22)%0A                .build();%0A%0A        InternalCommunicationConfig expected = new InternalCommunicationConfig()%0A                .setHttpsRequired(true)%0A                .setKeyStorePath(%22key-path%22)%0A                .setKeyStorePassword(%22key-key%22)%0A                .setTrustStorePath(%22trust-path%22)%0A                .setTrustStorePassword(%22trust-key%22)%0A                .setKerberosEnabled(true)%0A                .setKerberosUseCanonicalHostname(false);%0A%0A        assertFullMapping(properties, expected);%0A    %7D%0A%7D%0A

Add TestInternalCommunicationConfig