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

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