@Test
public void testShadowUserMigrationWithDuplicateUserExtId(){

    List<MigrationUser> migrationUserList=new ArrayList<>();
    MigrationUser migrationUser = new MigrationUser();
    migrationUser.setChannel("TN");
    migrationUser.setInputStatus("Active");
    migrationUser.setOrgExternalId("org ext id");
    migrationUser.setPhone("9876543210");
    migrationUser.setUserExternalId("any user ext id");
    migrationUser.setName("Shadow User Name");
    migrationUserList.add(migrationUser);
    MigrationUser anotherMigrationUser = new MigrationUser();
    anotherMigrationUser.setChannel("TN");
    anotherMigrationUser.setInputStatus("Active");
    anotherMigrationUser.setOrgExternalId("org ext id");
    anotherMigrationUser.setPhone("9876543210");
    anotherMigrationUser.setUserExternalId("any user ext id");
    anotherMigrationUser.setName("Shadow User Name");
    migrationUserList.add(anotherMigrationUser);
    try {
        new ShadowUserUpload.ShadowUserUploadBuilder()
                .setProcessId(ProjectUtil.generateUniqueId())
                .setFileSize("1024")
                .setValues(migrationUserList)
                .validate();
    } catch (Exception e) {
        Assert.assertEquals("[ In Row 2:the Column userExternalId:is duplicate ]", e.getMessage());
    }
}