Issue #289: Porting file-handling enhancements from main

This change introduces file-handling enhancements from
apache/uima-uimaj#209 and apache/uima-uimaj#211 to the main-v2
branch, including the fix addressing CVE-2022-32287.

This meant porting the entire org.apache.uima.util.impl.Constants class
and also the unit test with associated org.junit.jupiter libraries.
Given that these are only used in the test scope, it didn't feel too
outrageous to use them just in this test and keep the others how
they've always been in v2.
4 files changed