public static File classPathToFile(String path) {
        URL url = CLASS_LOADER.getResource(path);
        if (url == null || !"file".equals(url.getProtocol())) {
            return null;
        }
        try {
            return Paths.get(url.toURI()).toFile();
        } catch (URISyntaxException e) {
            return null;
        }
    }
@Test
    void testClassPathToFileThatDoesNotExist() {
        File file = ResourceUtils.classPathToFile("com/intuit/karate/resource/nope.txt");
        assertNull(file);
    }