assertEquals("The return value is not correct.", Tag.EVAL_PAGE, this.tag.doEndTag());
verify("entry params(log4j-test1.xml, 5792) TRACE M-ENTRY[ FLOW ] E");
}
private void verify(final String expected) {
final LoggerContext ctx = (LoggerContext) LogManager.getContext(false);
final Map<String, Appender<?>> list = ctx.getConfiguration().getAppenders();
final Appender<?> listApp = list.get("List");
assertNotNull("Missing Appender", listApp);
assertTrue("Not a ListAppender", listApp instanceof ListAppender);
final List<String> events = ((ListAppender) listApp).getMessages();
try