@Test(expected = NoSuchBeanDefinitionException.class)
lic void testGetAbstractContextSourceFromApplicationContextNoContextSource() throws Exception {

en(applicationContextMock.getBeanNamesForType(BaseLdapPathSource.class))
            .thenReturn(new String[0]);
    tested.getBaseLdapPathSourceFromApplicationContext();
}