public void setSelector(Selector selector) {
        this.selector = selector;
    }
@Test
    void testSetSelector() {
        LabelSelector labelSelector = new LabelSelector();
        serviceMetadata.setSelector(labelSelector);
        
        Selector selector = serviceMetadata.getSelector();
        assertNotNull(selector);
        boolean result = selector instanceof LabelSelector;
        assertTrue(result);
    }