The change updates the test to throw an exception if expected AgentLoadException is not thrown
------------- Commit messages: - fix Changes: https://git.openjdk.org/jdk/pull/17971/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17971&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8326525 Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17971.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17971/head:pull/17971 PR: https://git.openjdk.org/jdk/pull/17971