private static void assertURLsMatch(String message, List<String> expected, URL[] actual) {
    List<String> actualStrings = Arrays.stream(actual).map(URL::toExternalForm).collect(Collectors.toList());
    assertEquals(message, expected, actualStrings);
  }
Minimal tests for AddToClassPathAction class. Most of the tests don't use
{@link java.security.AccessController#doPrivileged(java.security.PrivilegedAction)},
presumably the tests will not be executed under security manager.
ql/src/test/org/apache/hadoop/hive/ql/exec/TestAddToClassPathAction.java