/*
* We filter the stack-trace to check if "Mockito" exists as a stack trace element. (The filter method
* remove all Mocktio stack trace elements). If the filtered stack trace length is not equal to the original stack trace length
* this means that the call has been caught by Mockito.
*/
final StackTraceElement[] filteredStackTrace = filter.filter(stackTrace, true);
return filteredStackTrace.length != stackTrace.length;
}
private Object performIntercept(MethodInterceptorFilter invocationHandler, final Object interceptionObject,
final Method method, Object[] arguments) throws Throwable {