public void ToAndFromByteArray()
        {
            var dh = new DataRequest {
                Method = 2
            };

            ProtoBufHelper.Prepare(typeof(Object), typeof(DataRequest));

            var bytes = dh.ToByteArray();

            Assert.IsTrue(bytes.Length > 0, "Length is zero");

            var deserialized = SerializationMethods.FromByteArray <DataRequest>(bytes);

            Assert.AreEqual(dh.Method, deserialized.Method, "Not serialized correctly");
        }