### Question:
FastSerdeCache { public static boolean isSupportedForFastDeserializer(Schema.Type readerSchemaType) { return readerSchemaType.equals(Schema.Type.RECORD) || readerSchemaType.equals(Schema.Type.MAP) || readerSchemaType.equals(Schema.Type.ARRAY); } FastSerdeCache(Supplier<String> compileClassPathSupplier);  FastSerdeCache(Executor executorService, Supplier<String> compileClassPathSupplier);  FastSerdeCache(String compileClassPath);  FastSerdeCache(Executor executorService, String compileClassPath);  FastSerdeCache(Executor executorService); private  FastSerdeCache(); static FastSerdeCache getDefaultInstance(); static boolean isSupportedForFastDeserializer(Schema.Type readerSchemaType); static boolean isSupportedForFastSerializer(Schema.Type schemaType); FastDeserializer<?> getFastSpecificDeserializer(Schema writerSchema, Schema readerSchema); FastDeserializer<?> getFastGenericDeserializer(Schema writerSchema, Schema readerSchema); FastSerializer<?> getFastSpecificSerializer(Schema schema); FastSerializer<?> getFastGenericSerializer(Schema schema); FastDeserializer<?> buildFastSpecificDeserializer(Schema writerSchema, Schema readerSchema); FastDeserializer<?> buildFastGenericDeserializer(Schema writerSchema, Schema readerSchema); FastSerializer<?> buildFastSpecificSerializer(Schema schema); FastSerializer<?> buildFastGenericSerializer(Schema schema); static final String CLASSPATH; static final String CLASSPATH_SUPPLIER; }### Answer:
@Test(groups = "deserializationTest") public void testIsSupportedForFastDeserializer() { Set<Schema.Type> supportedSchemaTypes = new HashSet<>(); supportedSchemaTypes.add(Schema.Type.RECORD); supportedSchemaTypes.add(Schema.Type.MAP); supportedSchemaTypes.add(Schema.Type.ARRAY); Map<Schema.Type, Schema> schemaTypes = new HashMap<>(); schemaTypes.put(Schema.Type.RECORD, Schema.parse("{\"type\": \"record\", \"name\": \"test\", \"fields\":[]}")); schemaTypes.put(Schema.Type.MAP, Schema.parse("{\"type\": \"map\", \"values\": \"string\"}")); schemaTypes.put(Schema.Type.ARRAY, Schema.parse("{\"type\": \"array\", \"items\": \"string\"}")); schemaTypes.put(Schema.Type.ENUM, Schema.parse("{\"type\": \"enum\", \"name\": \"test_enum\", \"symbols\":[]}")); schemaTypes.put(Schema.Type.UNION, Schema.parse("[\"null\", \"string\"]")); schemaTypes.put(Schema.Type.FIXED, Schema.parse("{\"type\": \"fixed\", \"size\": 16, \"name\": \"test_fixed\"}")); for (Schema.Type type : Schema.Type.values()) { Schema schema = schemaTypes.containsKey(type) ? schemaTypes.get(type) : Schema.create(type); if (supportedSchemaTypes.contains(type)) { Assert.assertTrue(FastSerdeCache.isSupportedForFastDeserializer(type)); FastDeserializerGeneratorBase.getClassName(schema, schema, ""); } else { Assert.assertFalse(FastSerdeCache.isSupportedForFastDeserializer(type)); } } }