code: public static File getResourceFile(String resourceName) throws URISyntaxException, ClassNotFoundException {
          URL url = ResourceUtil.class.getClassLoader().getResource(resourceName);
          assert url != null : resourceName;
          return new File(url.toURI());
      }
docs: This method will find resources as a file, resources and test/resources are found on class loader paths e.g.
  file1.csv
  @param resourceName resource name
  @return <code>File</code> resource file