public void ReadWriteInt32Test()
        {
            MemoryStream ms = new MemoryStream();
        	IStreamAdapter adapter = new StreamAdapter(ms);
            // serialize some data
            XmlWriterMock writer = new XmlWriterMock(adapter);
            int a = 1234567890;
            writer.Write(a);
            ms.Position = 0;
            string actual = Encoding.UTF8.GetString(ms.ToArray());
            string expected = "<int>" + a + "</int>";
            Assert.AreEqual(actual, expected);

            // deserialize serialized data
            XmlReaderMock reader = new XmlReaderMock(adapter);
            int b = reader.ReadInt32();
            Assert.AreEqual(a, b);
        }
		protected StreamAdapter_Accessor GetStreamAccessor(StreamAdapter adapter)
		{
			PrivateObject po = new PrivateObject(adapter);
			StreamAdapter_Accessor accessor = new StreamAdapter_Accessor(po);
			return accessor;
		}