Element tplName = createRewritableDiv();
tplName.removeAttribute("id");
tplName.setAttribute("name", "otherid");
Gadget gadget = mockGadget(OsTemplateXmlLoaderRewriter.OS_TEMPLATES_FEATURE_NAME, "another");
String xmlVal = "thexml";
Converter converter = mockConverter(xmlVal, "{thejson}", 2);
tplId.setTextContent(xmlVal);
tplName.setTextContent(xmlVal);
completeDocAsHtml(tplId, tplName);
assertTrue(revisit(gadget, converter, tplId, tplName));
verify(gadget);