BodyParserEngineManagerImpl implements BodyParserEngineManager { @Override public Set<String> getContentTypes() { return ImmutableSet.copyOf(contentTypeToBodyParserMap.keySet()); } @Inject  BodyParserEngineManagerImpl(Injector injector); @Override Set<String> getContentTypes(); @Override BodyParserEngine getBodyParserEngineForContentType(String contentType);  }
@Test public void testContentTypes() { List<String> types = Lists.newArrayList(createBodyParserEngineManager().getContentTypes()); Collections.sort(types); assertThat(types.toString(), equalTo("[application/json, application/x-www-form-urlencoded, application/xml]")); }