DatenpaketHttpMessageConverter extends AbstractHttpMessageConverter<Datenpaket> { @Override protected boolean supports(Class<?> aClass) { return Datenpaket.class.equals(aClass); } DatenpaketHttpMessageConverter(MediaType... type); private  DatenpaketHttpMessageConverter(AbstractFormatter formatter, MediaType... type); @Override String toString();  }
@Test public void testSupports() { DatenpaketHttpMessageConverter converter = new DatenpaketHttpMessageConverter(MediaType.TEXT_PLAIN); assertThat(converter.supports(Datenpaket.class), is(true)); }