public void TestCopyMetaData()
        {
            EncodedImage encodedImage = new EncodedImage(_byteBufferRef);

            encodedImage.Format        = ImageFormat.JPEG;
            encodedImage.RotationAngle = 0;
            encodedImage.Width         = 1;
            encodedImage.Height        = 2;
            encodedImage.SampleSize    = 3;
            EncodedImage encodedImage2 = new EncodedImage(_byteBufferRef);

            encodedImage2.CopyMetaDataFrom(encodedImage);
            Assert.AreEqual(encodedImage.Format, encodedImage2.Format);
            Assert.AreEqual(encodedImage.Width, encodedImage2.Width);
            Assert.AreEqual(encodedImage.Height, encodedImage2.Height);
            Assert.AreEqual(encodedImage.SampleSize, encodedImage2.SampleSize);
            Assert.AreEqual(encodedImage.Size, encodedImage2.Size);

            EncodedImage encodedImage3 = new EncodedImage(_inputStreamSupplier);

            encodedImage3.Format        = ImageFormat.JPEG;
            encodedImage3.RotationAngle = 0;
            encodedImage3.Width         = 1;
            encodedImage3.Height        = 2;
            encodedImage3.SampleSize    = 3;
            encodedImage3.StreamSize    = 4;
            EncodedImage encodedImage4 = new EncodedImage(_inputStreamSupplier);

            encodedImage4.CopyMetaDataFrom(encodedImage3);
            Assert.AreEqual(encodedImage3.Format, encodedImage4.Format);
            Assert.AreEqual(encodedImage3.Width, encodedImage4.Width);
            Assert.AreEqual(encodedImage3.Height, encodedImage4.Height);
            Assert.AreEqual(encodedImage3.SampleSize, encodedImage4.SampleSize);
            Assert.AreEqual(encodedImage3.Size, encodedImage4.Size);
        }