public void ExceptionFactoryTest()
        {
            var exception  = ExceptionFactory.CreateException("code", "msg", "id", "host");
            var exception1 = ExceptionFactory.CreateException("code1", "msg1", "id1", "host1", exception);

            Assert.AreEqual(exception1.InnerException, exception);

            try
            {
                ExceptionFactory.CreateInvalidResponseException(exception);
                Assert.IsTrue(false);
            }
            catch (InvalidOperationException e)
            {
                Assert.AreEqual(e.InnerException, exception);
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message);
            }
        }