//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldAcceptAllValidPolicyKeys()
        public virtual void ShouldAcceptAllValidPolicyKeys()
        {
            // given
            SslPolicyConfigValidator     validator      = new SslPolicyConfigValidator();
            IDictionary <string, string> originalParams = Params("dbms.ssl.policy.default.base_directory", "xyz", "dbms.ssl.policy.default.allow_key_generation", "xyz", "dbms.ssl.policy.default.trust_all", "xyz", "dbms.ssl.policy.default.private_key", "xyz", "dbms.ssl.policy.default.private_key_password", "xyz", "dbms.ssl.policy.default.public_certificate", "xyz", "dbms.ssl.policy.default.trusted_dir", "xyz", "dbms.ssl.policy.default.revoked_dir", "xyz", "dbms.ssl.policy.default.client_auth", "xyz", "dbms.ssl.policy.default.tls_versions", "xyz", "dbms.ssl.policy.default.ciphers", "xyz");

            // when
            IDictionary <string, string> validatedParams = validator.Validate(originalParams, _warnings);

            // then
            assertEquals(originalParams, validatedParams);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldIgnoreUnknownNonPolicySettings()
        public virtual void ShouldIgnoreUnknownNonPolicySettings()
        {
            // given
            SslPolicyConfigValidator     validator      = new SslPolicyConfigValidator();
            IDictionary <string, string> originalParams = Params("dbms.ssl.unknown", "xyz", "dbms.ssl.something", "xyz", "dbms.unrelated.totally", "xyz");

            // when
            IDictionary <string, string> validatedParams = validator.Validate(originalParams, _warnings);

            // then
            assertTrue(validatedParams.Count == 0);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldThrowOnDirectPolicySetting()
        public virtual void ShouldThrowOnDirectPolicySetting()
        {
            // given
            SslPolicyConfigValidator     validator      = new SslPolicyConfigValidator();
            IDictionary <string, string> originalParams = Params("dbms.ssl.policy.base_directory", "path");

            // when
            try
            {
                validator.Validate(originalParams, _warnings);
                fail();
            }
            catch (InvalidSettingException e)
            {
                assertTrue(e.Message.contains("Invalid setting name"));
            }
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldComplainWhenMissingMandatoryBaseDirectory()
        public virtual void ShouldComplainWhenMissingMandatoryBaseDirectory()
        {
            // given
            SslPolicyConfigValidator     validator      = new SslPolicyConfigValidator();
            IDictionary <string, string> originalParams = Params("dbms.ssl.policy.default.private_key", "private.key", "dbms.ssl.policy.default.public_certificate", "public.crt");

            // when
            try
            {
                validator.Validate(originalParams, _warnings);
                fail();
            }
            catch (InvalidSettingException e)
            {
                assertTrue(e.Message.contains("Missing mandatory setting"));
            }
        }