CompositeTemplateLoader implements TemplateLoader { public Iterable<TemplateLoader> getDelegates() { return Arrays.asList(delegates); } CompositeTemplateLoader(final TemplateLoader... loaders); @Override TemplateSource sourceAt(final String location); @Override String resolve(final String location); @Override String getPrefix(); @Override String getSuffix(); @Override void setPrefix(final String prefix); @Override void setSuffix(final String suffix); @Override void setCharset(final Charset charset); @Override Charset getCharset(); Iterable<TemplateLoader> getDelegates();  }
@Test public void getDelegates() throws IOException { Iterable<TemplateLoader> delegates = loader.getDelegates(); assertNotNull(delegates); Iterator<TemplateLoader> iterator = delegates.iterator(); assertNotNull(iterator); assertTrue(iterator.next() instanceof ClassPathTemplateLoader); assertTrue(iterator.next() instanceof FileTemplateLoader); }