ErrorDetailHttpMessageConverter extends AbstractHttpMessageConverter<ErrorDetail> { @Override protected boolean supports(Class<?> clazz) { return ErrorDetail.class.equals(clazz); } ErrorDetailHttpMessageConverter(MediaType... supportedMediaTypes);   }
@Test public void testSupports() { ErrorDetailHttpMessageConverter converter = new ErrorDetailHttpMessageConverter(MediaType.TEXT_HTML); assertThat(converter.supports(ErrorDetail.class), is(true)); }