### Question:
LdapServerProperties { protected String resolveUserSearchFilterPlaceHolders(String filter) { return filter .replace("{usernameAttribute}", usernameAttribute) .replace("{userObjectClass}", userObjectClass); }  List<String> getLdapUrls(); String getPrimaryUrl(); void setPrimaryUrl(String primaryUrl); String getSecondaryUrl(); void setSecondaryUrl(String secondaryUrl); boolean isUseSsl(); void setUseSsl(boolean useSsl); boolean isAnonymousBind(); void setAnonymousBind(boolean anonymousBind); String getManagerDn(); void setManagerDn(String managerDn); String getManagerPassword(); void setManagerPassword(String managerPassword); String getBaseDN(); void setBaseDN(String baseDN); String getUserSearchBase(); void setUserSearchBase(String userSearchBase); String getUserSearchFilter(boolean useAlternateUserSearchFilter); String getUsernameAttribute(); void setUsernameAttribute(String usernameAttribute); void setForceUsernameToLowercase(boolean forceUsernameToLowercase); boolean isForceUsernameToLowercase(); String getGroupBase(); void setGroupBase(String groupBase); String getGroupObjectClass(); void setGroupObjectClass(String groupObjectClass); String getGroupMembershipAttr(); void setGroupMembershipAttr(String groupMembershipAttr); String getGroupNamingAttr(); void setGroupNamingAttr(String groupNamingAttr); String getAdminGroupMappingRules(); void setAdminGroupMappingRules(String adminGroupMappingRules); String getGroupSearchFilter(); void setGroupSearchFilter(String groupSearchFilter); void setUserSearchFilter(String userSearchFilter); void setAlternateUserSearchFilterEnabled(boolean alternateUserSearchFilterEnabled); boolean isAlternateUserSearchFilterEnabled(); void setAlternateUserSearchFilter(String alternateUserSearchFilter); boolean isGroupMappingEnabled(); void setGroupMappingEnabled(boolean groupMappingEnabled); void setUserBase(String userBase); void setUserObjectClass(String userObjectClass); String getUserBase(); String getUserObjectClass(); String getDnAttribute(); void setDnAttribute(String dnAttribute); void setReferralMethod(String referralMethod); String getReferralMethod(); boolean isDisableEndpointIdentification(); void setDisableEndpointIdentification(boolean disableEndpointIdentification); boolean isPaginationEnabled(); void setPaginationEnabled(boolean paginationEnabled); String getSyncGroupMemberReplacePattern(); void setSyncGroupMemberReplacePattern(String syncGroupMemberReplacePattern); String getSyncUserMemberReplacePattern(); void setSyncUserMemberReplacePattern(String syncUserMemberReplacePattern); String getSyncUserMemberFilter(); void setSyncUserMemberFilter(String syncUserMemberFilter); String getSyncGroupMemberFilter(); void setSyncGroupMemberFilter(String syncGroupMemberFilter); String getAdminGroupMappingMemberAttr(); void setAdminGroupMappingMemberAttr(String adminGroupMappingMemberAttr); @Override final boolean equals(Object obj); @Override final int hashCode();  }### Answer:
@Test public void testResolveUserSearchFilterPlaceHolders() throws Exception { String ldapUserSearchFilter = "{usernameAttribute}={0} {userObjectClass}={1}"; String filter = ldapServerProperties.resolveUserSearchFilterPlaceHolders(ldapUserSearchFilter); assertEquals("uid={0} dummyObjectClass={1}", filter); }