assertEquals("Unexpected argument value.", argValue, value);
}
};
pageContext.pushIAPIElement(invoke);
ArgumentsElement element = new ArgumentsElement();
// call elementStart to ensure we have our parent.
element.elementStart(requestContext, null);
element.addArgument(argName, argValue);
int result = element.elementEnd(requestContext, null);
assertEquals("Unexpected result from elementEnd.",
IAPIConstants.CONTINUE_PROCESSING, result);
assertTrue("InvokeElement.setArguments should have been invoked.",
calledSetArgs.getValue());