Update Java test to allow for how libraries are loaded by System.load. Test is mainly to validate the API can be called. We have native unit tests that validate the symbol can be used when loaded with RTLD_GLOBAL or linked against, so not overcomplicating the unit test for now.