public List<R> scanForResourcesPath(Path resourcePath) {
        requireNonNull(resourcePath, "resourcePath must not be null");
        List<R> resources = new ArrayList<>();
        pathScanner.findResourcesForPath(
            resourcePath,
            canLoad,
            processResource(DEFAULT_PACKAGE_NAME, NULL_FILTER, createUriResource(), resources::add));
        return resources;
    }
@Test
    void scanForResourcesPath() {
        File file = new File("src/test/resources/io/cucumber/core/resource/test/resource.txt");
        List<URI> resources = resourceScanner.scanForResourcesPath(file.toPath());
        assertThat(resources, contains(file.toURI()));
    }