public Invokable createThrowableStub(String methodName, InvocationMatcher arguments, Throwable throwable) {
return new InvocationMocker(methodName, arguments, new ThrowStub(throwable));
}
public Invokable createThrowableExpectation(String methodName, InvocationMatcher arguments, Throwable throwable) {
return callOnce(new InvocationMocker(methodName, arguments, new ThrowStub(throwable)));
}