code: private Object[] getParameters(FrameworkMethod fm)
     {
        Method m = fm.getMethod();
        SecurityActions.setAccessible(m);
        
        Class<?>[] parameters = m.getParameterTypes();
        Annotation[][] parameterAnnotations = m.getParameterAnnotations();
        Object[] result = new Object[parameters.length];
  
        for (int i = 0; i < parameters.length; i++)
        {
           Annotation[] parameterAnnotation = parameterAnnotations[i];
           boolean inject = false;
           String name = null;
  
           for (int j = 0; j < parameterAnnotation.length; j++)
           {
              Annotation a = parameterAnnotation[j];
              if (javax.inject.Inject.class.equals(a.annotationType()))
              {
                 inject = true;
              }
              else if (javax.inject.Named.class.equals(a.annotationType()))
              {
                 name = ((javax.inject.Named)a).value();
              }
           }
  
           if (inject)
           {
              result[i] = resolveBean(name != null ? name : parameters[i].getSimpleName(), parameters[i]);
           }
           else
           {
              result[i] = null;
           }
        }
        
        return result;
     }
docs: Get parameter values for a method
  @param fm The FrameworkMethod
  @return The resolved parameters