private static Object[] fileToParams(final File file) {
    try {
      final String fileName = file.toPath().getFileName().toString();
      final URL fileURL = file.toURI().toURL();
      return new Object[] {fileName, fileURL};
    } catch (final MalformedURLException e) {
      throw new RuntimeException("Problem reading spec file " + file.getAbsolutePath(), e);
    }
  }
Searches the provided subdirectories for spec files containing test cases, and returns
parameters required to run these tests.

@param subDirectoryPaths The subdirectories to search.
@return Parameters for this test which will contain the name of the test and the url of the
    spec file to run.
ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/AbstractJsonRpcHttpBySpecTest.java