public void ATC3315_CRMInvestigationValidateOwnerChanges()
        {
            //Login in as role
            User user = this.environment.GetUser(SecurityRole.InvestigationsOfficer);

            new LoginDialog().Login(user.Id, user.Password);

            string[] allowedUserName = { "IMSTestU03", "IMSTestU04", "IMSTestU05", "IMSTestU06", "IMSTestU07", "IMSTestU09", "IMSTestU10", "IMSTestU12" };
            string[] notAllowedUserName = { "IMSTestU08", "IMSTestU01", "IMSTestU11", "IMSTestU13" };

            HomePage homePage = new HomePage(driver);
            homePage.HoverCRMRibbonTab();
            homePage.ClickInvestigationsRibbonButton();
            homePage.HoverInvestigationsRibbonTab();
            homePage.ClickInvestigationsCasesRibbonButton();

            // Create new investigation case
            InvestigationCaseSearchPage investigationCaseSearchPage = new InvestigationCaseSearchPage(driver);
            investigationCaseSearchPage.ClickNewInvestigationCaseButton();

            InvestigationCasePage investigationCasePage = new InvestigationCasePage(driver);
            string BaseWindow = driver.CurrentWindowHandle; //Records the current window handles
            investigationCasePage.ClickPageTitle();

            investigationCasePage.ClickSaveButton();

            // Verify the NOT ALLOWED users
            for (int userNo = 0; userNo < notAllowedUserName.Length; userNo++)
            {
                investigationCasePage.SetOwnerValue(notAllowedUserName[userNo]);
                investigationCasePage.ClickPageTitle();
                investigationCasePage.ClickSaveButton();

                // Get the Alert message
                StringAssert.Contains(investigationCasePage.GetOwnerValidationMessageString("ErrorTitle"), "Assignee has insufficient privileges");
                StringAssert.Contains(investigationCasePage.GetOwnerValidationMessageString("ErrorMessage"), "The selected user does not have sufficient privileges to be assigned records of this type. For more information, contact your system administrator.");

                investigationCasePage.ClickDialogAddButton();
            }

            for (int userNo = 0; userNo < allowedUserName.Length; userNo++)
            {
                investigationCasePage.SetOwnerValue(allowedUserName[userNo]);
                investigationCasePage.ClickPageTitle();
                investigationCasePage.ClickSaveButton();

                StringAssert.Contains(investigationCasePage.GetOwnerNameValue(), allowedUserName[userNo]);
            }
        }