public static <E extends Extension> Predicate<E> labelAndFieldSelectorToPredicate(
        List<String> labelSelectors, List<String> fieldSelectors) {
        return SelectorUtil.<E>labelSelectorsToPredicate(labelSelectors)
            .and(fieldSelectorToPredicate(fieldSelectors));
    }
@Test
    void shouldConvertCorrectlyIfSelectorsAreNotNull() {
        var predicate = labelAndFieldSelectorToPredicate(List.of("label-name=label-value"),
            List.of("name=fake-name"));
        assertNotNull(predicate);

        var fake = new FakeExtension();
        var metadata = new Metadata();
        fake.setMetadata(metadata);
        assertFalse(predicate.test(fake));

        metadata.setName("fake-name");
        assertFalse(predicate.test(fake));

        metadata.setLabels(Map.of("label-name", "label-value"));
        assertTrue(predicate.test(fake));

        metadata.setName("invalid-name");
        assertFalse(predicate.test(fake));
    }