@Test
public void testOneOfEverythingFieldManual()
throws Exception
{
ThriftCatalog catalog = readCodecManager.getCatalog();
ThriftType bonkFieldType = catalog.getThriftType(BonkField.class);
ThriftType unionFieldType = catalog.getThriftType(UnionField.class);
ThriftType fruitType = catalog.getThriftType(Fruit.class);
ThriftCodec<Fruit> fruitCodec = new EnumThriftCodec<>(fruitType);
BonkFieldThriftCodec bonkFieldCodec = new BonkFieldThriftCodec(bonkFieldType);
UnionFieldThriftCodec unionFieldCodec = new UnionFieldThriftCodec(unionFieldType, fruitCodec);
ThriftType oneOfEverythingType = catalog.getThriftType(OneOfEverything.class);
OneOfEverythingThriftCodec codec = new OneOfEverythingThriftCodec(
oneOfEverythingType,
bonkFieldCodec,
unionFieldCodec,