TemplateEngineManagerImpl implements TemplateEngineManager { @Override public Set<String> getContentTypes() { return ImmutableSet.copyOf(contentTypeToTemplateEngineMap.keySet()); } @Inject  TemplateEngineManagerImpl(Injector injector); @Override Set<String> getContentTypes(); @Override TemplateEngine getTemplateEngineForContentType(String contentType);  }
@Test public void testContentTypes() { List<String> types = Lists.newArrayList(createTemplateEngineManager().getContentTypes()); Collections.sort(types); assertThat(types.toString(), equalTo("[application/javascript, application/json, application/xml, text/html, text/plain]")); }