CreateServlet extends TransformationServlet { static ConfigTemplate getConfigTemplate(final String type) throws IOException { try (InputStream ttlInput = RepositoryConfig.class.getResourceAsStream(type + ".ttl")) { final String template = IOUtil.readString(new InputStreamReader(ttlInput, "UTF-8")); return new ConfigTemplate(template); } }  @Override void init(final ServletConfig config);  }
@Test public final void testExpectedTemplatesCanBeLoaded() throws IOException { for (String template : EXPECTED_TEMPLATES) { System.out.println(template); CreateServlet.getConfigTemplate(template); } }