private MethodInfo GetGenericMethodInstance(Type targetType, Type returnType, string memberName, Type[] typeArguments, params object[] args)
        {
            var type  = targetType;
            var mixin = MocksRepository.GetMockMixin(targetType, null);

            if (mixin != null)
            {
                type = mixin.DeclaringType;
            }

            var method = MockingUtil.GetGenericMethodInstanceByName(type, returnType, memberName, typeArguments, ref args);

            return(method);
        }