@Test
public void copyAndConvertExternalIdsToLower() {

  List<Map<String, String>> externalIds = new ArrayList<Map<String, String>>();
  Map<String, String> userExternalIdMap = new HashMap<String, String>();
  userExternalIdMap.put(JsonKey.ID, "test123");
  userExternalIdMap.put(JsonKey.PROVIDER, "State");
  userExternalIdMap.put(JsonKey.ID_TYPE, "UserExtId");
  externalIds.add(userExternalIdMap);
  externalIds = UserUtil.copyAndConvertExternalIdsToLower(externalIds);
  userExternalIdMap = externalIds.get(0);
  assertNotNull(userExternalIdMap.get(JsonKey.ORIGINAL_EXTERNAL_ID));
  assertEquals(userExternalIdMap.get(JsonKey.PROVIDER), "state");
}