io ByteArrayInputStream io ByteArrayOutputStream io ObjectInputStream io ObjectOutputStream nio ByteBuffer HashMap HashSet junit framework TestCase protocol TBinaryProtocol protocol TProtocol transport TMemoryBuffer test ComparableUnion test Empty test RandomStuff test SomeEnum test StructWithAUnion test TestUnion test TestUnionMinusStringField testtunion testcase testbasic testunion union testunion assertfalse union.isset assertfalse union.isseti32_field assertnull union.getfieldvalue union testunion testunion._fields.i32_field assertequals integer.valueof union.getfieldvalue assertequals integer.valueof union.getfieldvalue testunion._fields.i32_field asserttrue union.isseti32_field union.getfieldvalue testunion._fields.string_field fail illegalargumentexception union testunion union.hashcode union.seti32_field assertequals union.geti32_field union.hashcode assertfalse union.issetstring_field union.getstring_field fail union testunion.i32_field assertfalse union.equals testunion union testunion.enum_field someenum.one union.hashcode union testunion union.tostring testcompareto comparableunion cu comparableunion.string_field comparableunion cu2 comparableunion.string_field asserttrue cu.compareto cu asserttrue cu2.compareto cu2 asserttrue cu.compareto cu2 asserttrue cu2.compareto cu cu2 comparableunion.binary_field bytebuffer.wrap asserttrue cu.compareto cu2 asserttrue cu2.compareto cu cu comparableunion.binary_field bytebuffer.wrap asserttrue cu.compareto cu2 asserttrue cu2.compareto cu testunion union1 testunion testunion._fields.struct_list randomstuff testunion union2 testunion testunion._fields.struct_list randomstuff asserttrue union1.compareto union2 testunion union3 testunion testunion._fields.i32_set hashset i32_set hashset i32_set.add testunion union4 testunion testunion._fields.i32_set i32_set asserttrue union3.compareto union4 i32_map hashmap i32_map.put testunion union5 testunion testunion._fields.i32_map i32_map testunion union6 testunion testunion._fields.i32_map hashmap asserttrue union5.compareto union6 testequality testunion union testunion testunion._fields.i32_field testunion otherunion testunion testunion._fields.string_field assertfalse union.equals otherunion otherunion testunion testunion._fields.i32_field assertfalse union.equals otherunion otherunion testunion testunion._fields.other_i32_field assertfalse union.equals otherunion testserialization testunion union testunion testunion._fields.i32_field tmemorybuffer buf tmemorybuffer tprotocol proto tbinaryprotocol buf union.write proto testunion u2 testunion u2.read proto assertequals u2 union structwithaunion swau structwithaunion u2 buf tmemorybuffer proto tbinaryprotocol buf swau.write proto structwithaunion swau2 structwithaunion assertfalse swau2.equals swau swau2.read proto assertequals swau2 swau buf tmemorybuffer proto tbinaryprotocol buf swau.write proto empty read proto testskip testunion tu testunion.string_field tuserialized tserializer serialize tu testunionminusstringfield tums testunionminusstringfield tdeserializer deserialize tums tuserialized assertnull tums.getsetfield assertnull tums.getfieldvalue testdeepcopy bytes bytebuffer bytebuffer.wrap bytes comparableunion cu comparableunion.binary_field comparableunion copy cu.deepcopy assertequals cu copy assertnotsame cu.bufferforbinary_field array copy.bufferforbinary_field array testtostring bytes bytebuffer bytebuffer.wrap bytes comparableunion cu comparableunion.binary_field expectedstring assertequals expectedstring cu.tostring testjavaserializable bytearrayoutputstream baos bytearrayoutputstream objectoutputstream oos objectoutputstream baos testunion tu testunion.string_field oos.writeobject tu serialized baos.tobytearray bytearrayinputstream bais bytearrayinputstream serialized objectinputstream ois objectinputstream bais testunion tu2 testunion ois.readobject assertequals tu tu2