Message proto = PigToProtobuf.tupleToMessage(AddressBook.newBuilder(), abTuple);
assertEquals(Fixtures.buildAddressBookProto(), proto);
// test with OneOfEach.
thrift.test.OneOfEach thrift_ooe = org.apache.thrift.Fixtures.oneOfEach;
OneOfEach proto_ooe = ThriftToProto.newInstance(thrift_ooe, OneOfEach.newBuilder().build()).convert(thrift_ooe);
//tuple from Thrift ooe :
Tuple tuple_ooe = ThriftToPig.newInstance(thrift.test.OneOfEach.class).getPigTuple(thrift_ooe);
assertEquals(proto_ooe, PigToProtobuf.tupleToMessage(OneOfEach.class, tuple_ooe));