### Question:
JspUtils { public static void executeSimpleTag(InternalContextAdapter context, Node node, PageContext pageContext, SimpleTag tag) throws JspException, IOException { tag.setJspBody(new VelocityJspFragment(pageContext, (ASTBlock) node .jjtGetChild(1), context)); tag.doTag(); }  static void setLatestTag(Context context, JspTag tag); static JspTag getLatestJspTag(Context context); static Tag wrapTag(JspTag tag); static void executeSimpleTag(InternalContextAdapter context,
            Node node, PageContext pageContext, SimpleTag tag); static void executeTag(InternalContextAdapter context, Node node,
            PageContext pageContext, Tag tag);  }### Answer:
@Test public void testExecuteSimpleTag() throws JspException, IOException { InternalContextAdapter context = createMock(InternalContextAdapter.class); Node node = createMock(Node.class); PageContext pageContext = createMock(PageContext.class); SimpleTag tag = createMock(SimpleTag.class); ASTBlock block = createMock(ASTBlock.class); tag.setJspBody(isA(VelocityJspFragment.class)); expect(node.jjtGetChild(1)).andReturn(block); tag.doTag(); replay(context, node, pageContext, block, tag); JspUtils.executeSimpleTag(context, node, pageContext, tag); verify(context, node, pageContext, block, tag); }