### Question:
AvroSerialization extends Configured implements Serialization<AvroWrapper<T>> { @Override public boolean accept(Class<?> c) { return AvroKey.class.isAssignableFrom(c) || AvroValue.class.isAssignableFrom(c); }  @Override boolean accept(Class<?> c); @Override Deserializer<AvroWrapper<T>> getDeserializer(Class<AvroWrapper<T>> c); @Override Serializer<AvroWrapper<T>> getSerializer(Class<AvroWrapper<T>> c); static void addToConfiguration(Configuration conf); static void setKeyWriterSchema(Configuration conf, Schema schema); static void setKeyReaderSchema(Configuration conf, Schema schema); static void setValueWriterSchema(Configuration conf, Schema schema); static void setValueReaderSchema(Configuration conf, Schema schema); static void setDataModelClass(Configuration conf, Class<? extends GenericData> modelClass); static Schema getKeyWriterSchema(Configuration conf); static Schema getKeyReaderSchema(Configuration conf); static Schema getValueWriterSchema(Configuration conf); static Schema getValueReaderSchema(Configuration conf); static Class<? extends GenericData> getDataModelClass(Configuration conf); static GenericData createDataModel(Configuration conf);  }### Answer:
@Test public void testAccept() { AvroSerialization<CharSequence> serialization = new AvroSerialization<>(); assertTrue(serialization.accept(AvroKey.class)); assertTrue(serialization.accept(AvroValue.class)); assertFalse(serialization.accept(AvroWrapper.class)); assertFalse(serialization.accept(String.class)); }