### Question:
VelocityJspFragment extends JspFragment { @Override public JspContext getJspContext() { return pageContext; } VelocityJspFragment(PageContext pageContext, ASTBlock block,
            InternalContextAdapter context); @Override void invoke(Writer out); @Override JspContext getJspContext();  }### Answer:
@Test public void testGetJspContext() { PageContext pageContext = createMock(PageContext.class); ASTBlock block = createMock(ASTBlock.class); InternalContextAdapter context = createMock(InternalContextAdapter.class); replay(pageContext, block, context); VelocityJspFragment fragment = new VelocityJspFragment(pageContext, block, context); assertSame(pageContext, fragment.getJspContext()); verify(pageContext, block, context); }