void resolveSelectors(EngineDiscoveryRequest request, CucumberEngineDescriptor engineDescriptor) {
        Predicate<String> packageFilter = buildPackageFilter(request);
        resolve(request, engineDescriptor, packageFilter);
        filter(engineDescriptor, packageFilter);
        pruneTree(engineDescriptor);
    }
@Test
    void resolveFeatureTestDescriptorsInUriOrder() {
        Path classpathRoot = Paths.get("src/test/resources/");
        DiscoverySelector resource = selectClasspathRoots(singleton(classpathRoot)).get(0);
        EngineDiscoveryRequest discoveryRequest = new SelectorRequest(resource);
        resolver.resolveSelectors(discoveryRequest, testDescriptor);

        Set<? extends TestDescriptor> features = testDescriptor.getChildren();
        List<TestDescriptor> unsorted = new ArrayList<>(features);
        List<TestDescriptor> sorted = new ArrayList<>(features);
        // Sorts by URI
        sorted.sort(comparing(feature -> feature.getUniqueId().getSegments().get(1).getValue()));
        assertEquals(unsorted, sorted);
    }