@Test
public void testGetUniqueIdByMemberPatternWhenPatternIsEmpty() {

  // GIVEN
  Configuration configuration = createNiceMock(Configuration.class);
  Users users = createNiceMock(Users.class);
  String memberAttribute = "<SID=...>;<GUID=...>;cn=member,dc=apache,dc=org";
  AmbariLdapDataPopulatorTestInstance populator = new AmbariLdapDataPopulatorTestInstance(configuration, users);
  // WHEN
  String result = populator.getUniqueIdByMemberPattern(memberAttribute, "");
  // THEN
  assertEquals(memberAttribute, result);
}