Currently, codec support for enum types is embedded in the PojoCodec as a PropertyCodecProvider. This makes it inaccessible to the new RecordCodec.
Consider whether we can add a top-level EnumCodec and EnumCodecProvider that can be used by both PojoCodec and RecordCodec.