@ SneakyThrows public final void recordMethodInvocation ( final Class < ? > targetClass , final String methodName , final Class < ? > [ ] argumentTypes , final Object [ ] arguments ) { jdbcMethodInvocations . add ( new JdbcMethodInvocation ( targetClass . getMethod ( methodName , argumentTypes ) , arguments ) ) ; }
record method invocation .