public void deleteInstanceMetadata(Service service, String metadataId) {
        MetadataOperation<InstanceMetadata> operation = buildMetadataOperation(service);
        operation.setTag(metadataId);
        WriteRequest operationLog = WriteRequest.newBuilder().setGroup(Constants.INSTANCE_METADATA)
                .setOperation(DataOperation.DELETE.name()).setData(ByteString.copyFrom(serializer.serialize(operation)))
                .build();
        submitMetadataOperation(operationLog);
    }
@Test
    void testDeleteInstanceMetadata() {
        assertThrows(NacosRuntimeException.class, () -> {
            String metadataId = "metadataId";
            namingMetadataOperateService.deleteInstanceMetadata(service, metadataId);
            
            Mockito.verify(service).getNamespace();
            Mockito.verify(service).getGroup();
            Mockito.verify(service).getName();
        });
    }