@@ -0,0 +1,828 @@
+package com.epam.reportportal.auth.store.entity.ldap;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport javax.validation.ConstraintViolation;%0Aimport javax.validation.Validation;%0Aimport javax.validation.Validator;%0Aimport javax.validation.ValidatorFactory;%0Aimport java.util.Set;%0A%0Aimport static junit.framework.TestCase.assertTrue;%0A%0Apublic class AbstractLdapConfigTest %7B%0A%0A%09private Validator validator;%0A%0A%09@Before%0A%09public void init() %7B%0A%09%09ValidatorFactory vf = Validation.buildDefaultValidatorFactory();%0A%09%09this.validator = vf.getValidator();%0A%09%7D%0A%0A%09@Test%0A%09public void checkValidation() %7B%0A%09%09LdapConfig cfg = new LdapConfig();%0A%09%09cfg.setEnabled(true);%0A%09%09cfg.setBaseDn(%22someDN%22);%0A%09%09cfg.setUrl(%22ldaps://localhost%22);%0A%09%09Set%3CConstraintViolation%3CLdapConfig%3E%3E violations = validator.validate(cfg);%0A%09%09assertTrue(violations.isEmpty());%0A%09%7D%0A%7D%0A

fix potential issue with ldap validator