### Question:
StructureRewriteRuleServiceImpl implements StructureRewriteRuleService { @Override public Set<String> getTemplates() { Set<String> templates = new HashSet<>(pageRules.size()); for (PageStructureRewriteRule r : pageRules) { templates.add(r.getStaticTemplate()); } return templates; }  @SuppressWarnings("unused") void bindRule(StructureRewriteRule rule); @SuppressWarnings("unused") void unbindRule(StructureRewriteRule rule); @SuppressWarnings("unused") void bindPageRule(PageStructureRewriteRule rule); @SuppressWarnings("unused") void unbindPageRule(PageStructureRewriteRule rule); @Override Set<String> getTemplates(); @Override List<StructureRewriteRule> getRules(ResourceResolver resolver);  }### Answer:
@Test public void testGetTemplate() { Set<String> templates = structureRewriteRuleService.getTemplates(); assertEquals(2, templates.size()); assertTrue(templates.contains(STATIC_HOME_TEMPLATE)); assertTrue(templates.contains(STATIC_PRODUCT_TEMPLATE)); }