void resolveSelectors(EngineDiscoveryRequest request, CucumberEngineDescriptor engineDescriptor) {
        Predicate<String> packageFilter = buildPackageFilter(request);
        resolve(request, engineDescriptor, packageFilter);
        filter(engineDescriptor, packageFilter);
        pruneTree(engineDescriptor);
    }
@Test
    void resolveRequestWithDirectorySelector() {
        DiscoverySelector resource = selectDirectory("src/test/resources/io/cucumber/junit/platform/engine");
        EngineDiscoveryRequest discoveryRequest = new SelectorRequest(resource);
        resolver.resolveSelectors(discoveryRequest, testDescriptor);
        assertEquals(6, testDescriptor.getChildren().size());
    }