public void GetObjectData_Sets_Info_About_Members()
        {
            //arrange.
            var serverResponse = new ServerResponse(new ServerResponseDTO());
            var sut            = new CouchDBClientException("message does not matter", serverResponse);

            //act.
            var serializationInfo = new SerializationInfo(typeof(CouchDBClientException), new Mock <IFormatterConverter>().Object);

            sut.GetObjectData(serializationInfo, new StreamingContext());

            //assert.
            Assert.Same(serverResponse, serializationInfo.GetValue(CouchDBClientException.ServerResponse_Key_InSerializationInfo, typeof(ServerResponse)));
        }