void resolveSelectors(EngineDiscoveryRequest request, CucumberEngineDescriptor engineDescriptor) {
        Predicate<String> packageFilter = buildPackageFilter(request);
        resolve(request, engineDescriptor, packageFilter);
        filter(engineDescriptor, packageFilter);
        pruneTree(engineDescriptor);
    }
@Test
    void resolveRequestWithClassSelectorShouldLogWarnIfNoFeaturesFound(LogRecordListener logRecordListener) {
        DiscoverySelector resource = selectClass(NoFeatures.class);
        EngineDiscoveryRequest discoveryRequest = new SelectorRequest(resource);
        resolver.resolveSelectors(discoveryRequest, testDescriptor);
        assertEquals(0, testDescriptor.getChildren().size());
        assertEquals(1, logRecordListener.getLogRecords().size());
        LogRecord logRecord = logRecordListener.getLogRecords().get(0);
        assertEquals(Level.WARNING, logRecord.getLevel());
        assertEquals("No features found in package 'io.cucumber.junit.platform.engine.nofeatures'",
            logRecord.getMessage());
    }