This can be enforced by pre-commit, but correct it separately to make it easier to review.
These are currently not intended to run with the rest of testsuite, as they require dependencies and special environment setup anyway (drafted in tests/jni/README).