Writer writer = createMock(Writer.class);
Node node = createMock(Node.class);
ASTMap astMap = createMock(ASTMap.class);
@SuppressWarnings("unchecked")
Map<String, Object> params = createMock(Map.class);
expect(node.jjtGetChild(0)).andReturn(astMap);
expect(astMap.value(context)).andReturn(params);
expect(params.get(eq("notnullParam"))).andReturn(new Integer(42)).anyTimes();
expect(params.get(eq("nullParam"))).andReturn(null).anyTimes();
replay(context, writer, node, astMap, params);
VelocityAutotagRuntime runtime = new VelocityAutotagRuntime();