@Bean
    @ConditionalOnMissingBean(LdapOperations.class)
    public LdapTemplate ldapTemplate(final LdapContextSource ldapContextSource) {
        return new LdapTemplate(ldapContextSource);
    }
@Test
    public void testLdapTemplate() {
        LdapContextSource ldapContextSource = new LdapContextSource();
        LdapTemplate ldapTemplate = ldapConfiguration.ldapTemplate(ldapContextSource);
        assertNotNull(ldapTemplate);
    }