MessagesPanelTag extends RequestContextAwareTag { public void setPanelTypeClassPrefix(String panelTypeClassPrefix) { this.panelTypeClassPrefix = panelTypeClassPrefix; }  void setMessagesAttributeName(String messagesAttributeName); void setPanelClassName(String panelClassName); void setPanelTypeClassPrefix(String panelTypeClassPrefix); void setPanelElement(String panelElement); void setOuterElement(String outerElement); void setInnerElement(String innerElement); void setMessagesType(String messagesType); void setDisableHtmlEscape(
            String disableHtmlEscape);  }
@Test public void testAppendPanelTypeClassPrefixPanelTypeClassPrefixNull() throws Exception { request.setAttribute(ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME, ResultMessages.error().add(ResultMessage.fromText("foo"))); tag.setPanelTypeClassPrefix(null); int ret = tag.doStartTag(); String expected = "<div class=\"alerterror\"><ul><li>foo</li></ul></div>"; assertThat(getOutput(), is(expected)); assertThat(ret, is(TagSupport.EVAL_BODY_INCLUDE)); }