LdapGroupMapping { public String getRequest() { return request; } LdapGroupMapping(Settings settings, String settingsPrefix); LdapSearch createSearch(LdapContextFactory contextFactory, SearchResult user); String getBaseDn(); String getIdAttribute(); String getRequest(); String[] getRequiredUserAttributes(); @Override String toString();  }
@Test public void backward_compatibility() { Settings settings = new Settings() .setProperty("ldap.group.objectClass", "group") .setProperty("ldap.group.memberAttribute", "member"); LdapGroupMapping groupMapping = new LdapGroupMapping(settings, "ldap"); assertThat(groupMapping.getRequest()).isEqualTo("(&(objectClass=group)(member={0}))"); }