public List<R> scanForResourcesUri(URI classpathResourceUri) {
        requireNonNull(classpathResourceUri, "classpathResourceUri must not be null");
        if (CLASSPATH_SCHEME.equals(classpathResourceUri.getScheme())) {
            return scanForClasspathResource(resourceName(classpathResourceUri), NULL_FILTER);
        }

        return findResourcesForUri(classpathResourceUri, DEFAULT_PACKAGE_NAME, NULL_FILTER, createUriResource());
    }
@Test
    void scanForResourcesNestedJarUri() {
        URI jarFileUri = new File("src/test/resources/io/cucumber/core/resource/test/spring-resource.jar").toURI();
        URI resourceUri = URI.create("jar:file://" + jarFileUri.getSchemeSpecificPart()
                + "!/BOOT-INF/lib/jar-resource.jar!/com/example/package-jar-resource.txt");

        CucumberException exception = assertThrows(
            CucumberException.class,
            () -> resourceScanner.scanForResourcesUri(resourceUri));
        assertThat(exception.getMessage(),
            containsString("Cucumber currently doesn't support classpath scanning in nested jars."));

    }