@Test
public void testGroupsForUserWithCommaInDN() {

    UserGroupCallback ldapUserGroupCallback = createLdapUserGroupCallback(Configuration.CUSTOM);
    Assertions.assertThat(ldapUserGroupCallback).isNotNull();
    List<String> userGroups = ldapUserGroupCallback.getGroupsForUser("john,jr");
    Assertions.assertThat(userGroups).hasSize(1).allMatch(s -> s.equals("manager,eng"));
}