public List<R> scanForClasspathResource(String resourceName, Predicate<String> packageFilter) {
        requireNonNull(resourceName, "resourceName must not be null");
        requireNonNull(packageFilter, "packageFilter must not be null");
        List<URI> urisForResource = getUrisForResource(getClassLoader(), resourceName);
        BiFunction<Path, Path, Resource> createResource = createClasspathResource(resourceName);
        return findResourcesForUris(urisForResource, DEFAULT_PACKAGE_NAME, packageFilter, createResource);
    }
@Test
    void scanForClasspathResourceWithSpaces() {
        String resourceName = "io/cucumber/core/resource/test/spaces in name resource.txt";
        List<URI> resources = resourceScanner.scanForClasspathResource(resourceName, aPackage -> true);
        assertThat(resources,
            contains(URI.create("classpath:io/cucumber/core/resource/test/spaces%20in%20name%20resource.txt")));
    }