private static void invokeAssert(String clazz, String method, List<Class<?>> argTypes, List<Object> argValues)
            throws ReflectiveOperationException {
        try {
            Class<?> c = Class.forName(clazz);
            Method m = c.getMethod(method, argTypes.toArray(new Class<?>[0]));
            m.invoke(null, argValues.toArray());
        } catch (InvocationTargetException e) {
            if (e.getCause() instanceof AssertionError ae) {
                throw ae;
            } else {
                throw new RuntimeException(e.getCause());
            }
        }
    }
Hack to support both junit4 and junit5

@author bjorncs
testutil/src/main/java/com/yahoo/test/JunitCompat.java