public void updateServiceMetadata(Service service, ServiceMetadata serviceMetadata) {
        MetadataOperation<ServiceMetadata> operation = buildMetadataOperation(service);
        operation.setMetadata(serviceMetadata);
        WriteRequest operationLog = WriteRequest.newBuilder().setGroup(Constants.SERVICE_METADATA)
                .setOperation(DataOperation.CHANGE.name()).setData(ByteString.copyFrom(serializer.serialize(operation)))
                .build();
        submitMetadataOperation(operationLog);
    }
@Test
    void testUpdateServiceMetadata() {
        assertThrows(NacosRuntimeException.class, () -> {
            ServiceMetadata serviceMetadata = new ServiceMetadata();
            namingMetadataOperateService.updateServiceMetadata(service, serviceMetadata);
            
            Mockito.verify(service).getNamespace();
            Mockito.verify(service).getGroup();
            Mockito.verify(service).getName();
        });
    }