public void LogHandlingError()
        {
            if (!EventLog.SourceExists(EventLogSource))
            {
                return;
            }
            Exception ex = new Exception(exceptionMessage);

            ExceptionUtility.FormatExceptionHandlingExceptionMessage(policy, null, null, ex);
            StringBuilder message = new StringBuilder();
            StringWriter  writer  = null;

            try
            {
                writer = new StringWriter(message);
                TextExceptionFormatter formatter = new TextExceptionFormatter(writer, ex);
                formatter.Format();
            }
            finally
            {
                if (writer != null)
                {
                    writer.Close();
                }
            }
            using (EventLog log = new EventLog(EventLogName))
            {
                EventLogEntry entry = log.Entries[log.Entries.Count - 1];
                Assert.AreEqual(EventLogEntryType.Error, entry.EntryType);
                Assert.AreEqual(EventLogSource, entry.Source);
            }
        }