{
throw new UnsupportedOperationException();
}
});
ThriftCatalog catalog = codecManager.getCatalog();
catalog.addDefaultCoercions(DefaultJavaCoercions.class);
ThriftType fruitType = catalog.getThriftType(Fruit.class);
codecManager.addCodec(new EnumThriftCodec<Fruit>(fruitType));
}
@Test