public void updateInstanceMetadata(Service service, String metadataId, InstanceMetadata instanceMetadata) {
        instanceMetadataMap.computeIfAbsent(service, k -> new ConcurrentHashMap<>(INITIAL_CAPACITY)).put(metadataId, instanceMetadata);
    }
@Test
    void testUpdateInstanceMetadata() throws NoSuchFieldException, IllegalAccessException {
        InstanceMetadata instanceMetadata = new InstanceMetadata();
        Class<InstanceMetadata> instanceMetadataClass = InstanceMetadata.class;
        Field enabled = instanceMetadataClass.getDeclaredField("enabled");
        enabled.setAccessible(true);
        enabled.set(instanceMetadata, false);
        
        namingMetadataManager.updateInstanceMetadata(service, METADATA_ID, instanceMetadata);
        
        Optional<InstanceMetadata> optional = namingMetadataManager.getInstanceMetadata(service, METADATA_ID);
        assertTrue(optional.isPresent());
        assertNotNull(optional.get());
        assertFalse(optional.get().isEnabled());
    }