public void TestWriteReadOnlyActionGroup()
        {
            Guid languageGuid = new Guid("{054846D4-6540-4C78-BA7D-141C91EE6A4C}");
            PolicyLanguage language = new PolicyLanguage(languageGuid, "en");
            language[new Guid("{D0FE23B8-B8A0-4DD6-A0F1-A7836DC0417E}")] = "Test catalogue";
            language[new Guid("{DF89145F-122D-413D-8668-BD39A7C80CF3}")] = "Protect us please";
            language[new Guid("{B337EADB-FBFC-4A3A-AB45-2ABA342ED419}")] = "Email us please";

            XmlPolicyLanguageStore languageStore = XmlPolicyLanguageStore.Instance;
            languageStore.AddLanguage(language);

            XMLPolicyCatalogueStore catalogueStore = XMLPolicyCatalogueStore.Instance;
            catalogueStore.Reset();

            Guid catalogueId = new Guid("{B496E117-29DA-4770-87E9-62573B28BB4F}");
            XmlPolicyCatalogueWriter catalogueWriter = catalogueStore.GetWriter(catalogueId, languageGuid) as XmlPolicyCatalogueWriter;
            Assert.IsNotNull(catalogueWriter, "Expected a valid [IPolicyStoreWriter] writer");

            catalogueWriter.WriteName("{D0FE23B8-B8A0-4DD6-A0F1-A7836DC0417E}");

            string actionGroupGuid = "{987B7C8B-5ADD-4696-8456-DDE11D95CE0B}";
            ActionGroup actionGroup = new ObjectModel.ActionGroup(new Guid(actionGroupGuid), new TranslateableLanguageItem("{DF89145F-122D-413D-8668-BD39A7C80CF3}"), 1);

            catalogueWriter.WriteActionGroup(actionGroup.DeepCopy(true) as IActionGroup);

            actionGroupGuid = "{BBEF6879-6D10-455d-A5D9-86D9B8B725A6}";
            actionGroup = new ObjectModel.ActionGroup(new Guid(actionGroupGuid), new TranslateableLanguageItem("{B337EADB-FBFC-4A3A-AB45-2ABA342ED419}"), 1);
            catalogueWriter.WriteActionGroup(actionGroup);

            catalogueWriter.Close();

            TestHelpers.CompareXml(m_testPath + "ExpectedWriteReadOnlyActionGroup.xml", catalogueStore.GetStoreXML(catalogueId));
        }