@Test
public void testCreateCustomMemberFilter() {

  // GIVEN
  Configuration configuration = createNiceMock(Configuration.class);
  Users users = createNiceMock(Users.class);
  AmbariLdapDataPopulatorTestInstance populator = new AmbariLdapDataPopulatorTestInstance(configuration, users);
  // WHEN
  Filter result = populator.createCustomMemberFilter("myUid", "(&(objectclass=posixaccount)(uid={member}))");
  // THEN
  assertEquals("(&(objectclass=posixaccount)(uid=myUid))", result.encode());
}