public Optional<ServiceMetadata> getServiceMetadata(Service service) {
        return Optional.ofNullable(serviceMetadataMap.get(service));
    }
@Test
    void testGetServiceMetadata() {
        Optional<ServiceMetadata> serviceMetadata = namingMetadataManager.getServiceMetadata(service);
        
        assertTrue(serviceMetadata.isPresent());
        assertNotNull(serviceMetadata.get());
    }