private void assertInvokeException(Class<? extends Throwable> expected, final Throwable firedFromMBInvoke)
{
final _MethodBindingToMethodExpression testimpl = new _MethodBindingToMethodExpression(_methodBinding);
expect(_methodBinding.invoke(same(_facesContext), (Object[]) isNull())).andThrow(firedFromMBInvoke);
_mocksControl.replay();
Assert.assertException(expected, new TestRunner()
{
public void run() throws Throwable
{
testimpl.invoke(_elContext, null);
}