@Test public void testMimeTypes() { assertThat(parser.getContentTypes()) .hasSize(1).contains(MimeTypes.JSON); }
public List<String> getContentTypes() { return ImmutableList.of(MimeTypes.JSON); }
BodyParserJson implements BodyParser { public List<String> getContentTypes() { return ImmutableList.of(MimeTypes.JSON); } }
BodyParserJson implements BodyParser { public List<String> getContentTypes() { return ImmutableList.of(MimeTypes.JSON); }  }
BodyParserJson implements BodyParser { public List<String> getContentTypes() { return ImmutableList.of(MimeTypes.JSON); }  T invoke(Context context, Class<T> classOfT); T invoke(Context context, Class<T> classOfT, Type genericType); @Override T invoke(byte[] bytes, Class<T> classOfT); List<String> getContentTypes(); }
BodyParserJson implements BodyParser { public List<String> getContentTypes() { return ImmutableList.of(MimeTypes.JSON); }  T invoke(Context context, Class<T> classOfT); T invoke(Context context, Class<T> classOfT, Type genericType); @Override T invoke(byte[] bytes, Class<T> classOfT); List<String> getContentTypes();  }