UseAttributeTag extends SimpleTagSupport { public String getScriptingVariable() { return id == null ? getName() : id; }  String getId(); void setId(String id); void setScope(String scope); String getScope(); String getName(); void setName(String name); void setIgnore(boolean ignore); boolean isIgnore(); String getClassname(); void setClassname(String name); @Override void doTag(); String getScriptingVariable();  }
@Test public void testGetScriptingVariable() { tag.setName("name"); assertEquals("name", tag.getScriptingVariable()); tag.setId("id"); assertEquals("id", tag.getScriptingVariable()); }