public ITestUIElementConstArg CreateMockArg()
    {
        ITestUIElementConstArg arg          = Substitute.For <ITestUIElementConstArg>();
        IUIManager             uim          = Substitute.For <IUIManager>();
        IPopUpManager          popUpManager = Substitute.For <IPopUpManager>();

        uim.GetPopUpManager().Returns(popUpManager);
        arg.uim.Returns(uim);
        arg.processFactory.Returns(Substitute.For <IUISystemProcessFactory>());
        arg.uiElementFactory.Returns(Substitute.For <IUIElementFactory>());
        arg.uia.Returns(Substitute.For <IUIAdaptor>());
        arg.activationMode.Returns(ActivationMode.None);
        arg.activationStateEngine.Returns(Substitute.For <IUIEActivationStateEngine>());
        arg.popUpManager.Returns(popUpManager);

        return(arg);
    }