public void TestOneofTypes_Primitive()
        {
            TestOneof2.Builder builder = TestOneof2.CreateBuilder();
            Assert.AreEqual(builder.FooInt, 0);
            Assert.IsFalse(builder.HasFooInt);
            Assert.IsTrue(builder.SetFooInt(123).HasFooInt);
            Assert.AreEqual(builder.FooInt, 123);
            TestOneof2 message = builder.BuildPartial();

            Assert.IsTrue(message.HasFooInt);
            Assert.AreEqual(message.FooInt, 123);

            Assert.IsFalse(builder.ClearFooInt().HasFooInt);
            TestOneof2 message2 = builder.Build();

            Assert.IsFalse(message2.HasFooInt);
            Assert.AreEqual(message2.FooInt, 0);
        }