* @throws IOException If the tag throws an IOException
*/
public void testForEachTag()
throws JspException, IOException
{
ForEachTag tag = new ForEachTag();
JspTagLifecycle lifecycle = new JspTagLifecycle(pageContext, tag);
tag.setVar("Item");
tag.setItems("One,Two,Three");
lifecycle.expectBodyEvaluated(3);
lifecycle.expectScopedVariableExposed(
"Item", new Object[] {"One", "Two", "Three"});
lifecycle.invoke();
}