PaginationTag extends RequestContextAwareTag { @Override public void release() { super.release(); this.page = null; this.pathTmpl = null; this.queryTmpl = null; this.criteriaQuery = null; this.disableHtmlEscapeOfCriteriaQuery = false; this.enableLinkOfCurrentPage = false; this.outerElement = null; this.outerElementClass = null; this.innerElement = null; this.innerElementClass = null; this.firstLinkText = null; this.previousLinkText = null; this.nextLinkText = null; this.lastLinkText = null; this.disabledHref = null; this.activeClass = null; this.disabledClass = null; }  @Override void release(); void setPage(Object page); void setPathTmpl(String pathTmpl); void setQueryTmpl(String queryTmpl); void setCriteriaQuery(String criteriaQuery); void setDisableHtmlEscapeOfCriteriaQuery(
            String disableHtmlEscapeOfCriteriaQuery); void setEnableLinkOfCurrentPage(
            String enableLinkOfCurrentPage); void setMaxDisplayCount(int maxDisplayCount); void setOuterElement(String outerElement); void setOuterElementClass(String outerElementClass); void setInnerElement(String innerElement); void setInnerElementClass(String innerElementClass); void setFirstLinkText(String firstLinkText); void setPreviousLinkText(String previousLinkText); void setNextLinkText(String nextLinkText); void setLastLinkText(String lastLinkText); void setDisabledHref(String disabledHref); void setActiveClass(String activeClass); void setDisabledClass(String disabledClass);  }
@Test public void testRelease01() throws Exception { tag.release(); assertThat(ReflectionTestUtils.getField(tag, "page"), is(nullValue())); assertThat(ReflectionTestUtils.getField(tag, "pathTmpl"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "queryTmpl"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "criteriaQuery"), is( nullValue())); assertThat((boolean) ReflectionTestUtils.getField(tag, "disableHtmlEscapeOfCriteriaQuery"), is(false)); assertThat((boolean) ReflectionTestUtils.getField(tag, "enableLinkOfCurrentPage"), is(false)); assertThat(ReflectionTestUtils.getField(tag, "outerElement"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "outerElementClass"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "innerElement"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "innerElementClass"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "firstLinkText"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "previousLinkText"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "nextLinkText"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "lastLinkText"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "disabledHref"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "activeClass"), is( nullValue())); assertThat(ReflectionTestUtils.getField(tag, "disabledClass"), is( nullValue())); }