public void GetLastUsedGroupTestForLastUsedGroupPresentAndDeleted()
        {
            Application application = new Application();
            try
            {
                Collection<Group> groups = new Collection<Group>();

                bool isWWTRunning = false;
                Group expected = groups.GetDefaultEarthGroup();

                Workbook book = application.OpenWorkbook("WorkbookTestData.xlsx", false);

                Common.Globals_Accessor.wwtManager = new WWTManager(new WWTMockRequest());
                Common.Globals_Accessor.TargetMachine = new TargetMachine("localhost");

                // Get the named range stored in the test data excel file.
                Name namedRange = book.Names.GetNamedRange("GetLastUsedGroupTestMap");

                LayerMap_Accessor selectedlayer = new LayerMap_Accessor(namedRange);
                selectedlayer.MapType = LayerMapType.Local;
                selectedlayer.IsNotInSync = false;
                selectedlayer.LayerDetails.ID = "Exits";

                WorkflowController_Accessor.LastUsedGroup = new Group("sky", GroupType.ReferenceFrame, null) { IsDeleted = true };

                Group actual = WorkflowController_Accessor.GetLastUsedGroup(selectedlayer, isWWTRunning);
                Assert.AreEqual(expected.Name, actual.Name);
                Assert.AreEqual(expected.Path, actual.Path);
            }
            finally
            {
                application.Close();
            }
        }