code: public static File getFile(Class resourceClass, String fileName) {
          try {
              return new File(URLDecoder.decode(resourceClass.getResource(fileName).getFile(), "UTF-8"));
          } catch (UnsupportedEncodingException e) {
              return new File(resourceClass.getResource(fileName).getFile());
          }
      }
docs: Returns a {@link File} named {@code fileName} associated with {@link Class} {@code resourceClass} .
  
  @param resourceClass The associated class
  @param fileName The file name
  @return The file named {@code fileName} associated with {@link Class} {@code resourceClass} .