@Test
public void testGetUniqueIdByMemberPatternWhenPatternIsWrong() {

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