Value (ThreadReference threadReference, Method method, List<? extends Value> list, int i) { Object[] argsArray = MockClassType.values2Objects(list); try { java.lang.reflect.Method refMethod = ((MockMethod)method).getMethod(); refMethod.setAccessible(true); return MockValue.createValue(refMethod.invoke(myObject, argsArray), refMethod.getReturnType(), myVirtualMachine); } catch (IllegalAccessException | InvocationTargetException e) { throw new RuntimeException(e); } }