@Test
public void testExcludeFields() throws Exception {
final Kryo kryo = new Kryo();
@SuppressWarnings("unchecked")
final SerializerFactory disregardingSerializerFactory = new FieldAnnotationAwareSerializer.Factory(
Arrays.<Class<? extends Annotation>>asList(CustomMark.class), true);
kryo.addDefaultSerializer(CustomBean.class, disregardingSerializerFactory);
final byte[] buffer = makeBuffer();