@Test
public void testFormatForUrlWithSpace() throws InvalidNameException {

    LdapName ldapName = new LdapName("ou=some department, dc=261consulting, dc=com");
    String result = AbstractContextSource.formatForUrl(ldapName);
    assertThat(result).isEqualTo("ou=some%20department,dc=261consulting,dc=com");
}