@Test
 public void testGetUserSearchFilter() throws Exception {
   assertEquals(
       INCORRECT_USER_SEARCH_FILTER, "(uid={0})", ldapServerProperties.getUserSearchFilter());
   ldapServerProperties.setUsernameAttribute("anotherName");
   assertEquals(
       INCORRECT_USER_SEARCH_FILTER,
       "(anotherName={0})",
       ldapServerProperties.getUserSearchFilter());
 }
 @Before
 public void setUp() throws Exception {
   ldapServerProperties = new LdapServerProperties();
   ldapServerProperties.setAnonymousBind(true);
   ldapServerProperties.setBaseDN("dc=ambari,dc=apache,dc=org");
   ldapServerProperties.setManagerDn("uid=manager," + ldapServerProperties.getBaseDN());
   ldapServerProperties.setManagerPassword("password");
   ldapServerProperties.setUseSsl(false);
   ldapServerProperties.setPrimaryUrl("1.2.3.4:389");
   ldapServerProperties.setUsernameAttribute("uid");
 }