@Test
public void testSerializerTypeing () {
Assert.assertEquals(new TypeDescriptor(Double.class),
new PrimitiveAvroSerializer<>(Double.class, CodecFactory.nullCodec()).getBinTypeDescription());
Assert.assertEquals(new TypeDescriptor(List.class,
new TypeDescriptor(Double.class)),
new PrimitiveArrayAvroSerializer<>(Double.class, CodecFactory.nullCodec()).getBinTypeDescription());
Assert.assertEquals(new TypeDescriptor(List.class,
new TypeDescriptor(Pair.class,
new TypeDescriptor(String.class),
new TypeDescriptor(Integer.class))),
new PairArrayAvroSerializer<>(String.class, Integer.class, CodecFactory.nullCodec()).getBinTypeDescription());
}
}