code: public static <T> OngoingStubbing<T> when(Object instance, String methodName, Object... arguments) throws Exception {
          return Mockito.when(Whitebox.<T>invokeMethod(instance, methodName, arguments));
      }
docs: Expect calls to private methods.
  
  @throws Exception If something unexpected goes wrong.
  @see PowerMockito#when(Object)