### Question:
JacksonSerializerMessageBodyReaderWriter implements MessageBodyReader<Object>, MessageBodyWriter<Object> { static <T> T deserializeObject(final Publisher<Buffer> bufferPublisher, final Serializer ser, final Class<T> type, final int contentLength, final BufferAllocator allocator) { return awaitResult(deserialize(bufferPublisher, ser, type, contentLength, allocator).toFuture()); }  @Override boolean isReadable(final Class<?> type, final Type genericType, final Annotation[] annotations,
                              final MediaType mediaType); @Override Object readFrom(final Class<Object> type, final Type genericType, final Annotation[] annotations,
                           final MediaType mediaType, final MultivaluedMap<String, String> httpHeaders,
                           final InputStream entityStream); @Override boolean isWriteable(final Class<?> type, final Type genericType, final Annotation[] annotations,
                               final MediaType mediaType); @Override void writeTo(final Object o, final Class<?> type, final Type genericType, final Annotation[] annotations,
                        final MediaType mediaType, final MultivaluedMap<String, Object> httpHeaders,
                        final OutputStream entityStream);  }### Answer:
@Test public void deserializeObjectDoesntRepeatBadRequestException() { expected.expect(instanceOf(BadRequestException.class)); expected.expectCause(instanceOf(SerializationException.class)); deserializeObject(from(DEFAULT_ALLOCATOR.fromAscii("{foo:123}")), new DefaultSerializer(new JacksonSerializationProvider()), Map.class, 9, DEFAULT_ALLOCATOR); }