@SuppressWarnings("unchecked")
List<? extends MethodId> choices =
((DropDownChoice<MethodId>) tester.getComponentFromLastRenderedPage("methodCallForm:methodList"))
.getChoices();
for (int i = 0; i < choices.size(); i++) {
MethodId methodId = choices.get(i);
if (methodId.getName().equals(name)
&& ArrayUtils.isEquals(methodId.getArgumentTypes(), parameterTypes)) {
formTester.select("methodList", i);
tester.executeAjaxEvent("methodCallForm:methodList", "onchange");
return;
}
}