public void removeServiceMetadata(Service service) {
        serviceMetadataMap.remove(service);
        expiredMetadataInfos.remove(ExpiredMetadataInfo.newExpiredServiceMetadata(service));
    }
@Test
    void testRemoveServiceMetadata() {
        
        namingMetadataManager.removeServiceMetadata(service);
        
        Optional<ServiceMetadata> serviceMetadata = namingMetadataManager.getServiceMetadata(service);
        
        assertFalse(serviceMetadata.isPresent());
    }