public void addClusterMetadata(Service service, String clusterName, ClusterMetadata clusterMetadata) {
        MetadataOperation<ServiceMetadata> operation = buildMetadataOperation(service);
        ServiceMetadata serviceMetadata = new ServiceMetadata();
        serviceMetadata.setEphemeral(service.isEphemeral());
        serviceMetadata.getClusters().put(clusterName, clusterMetadata);
        operation.setMetadata(serviceMetadata);
        WriteRequest operationLog = WriteRequest.newBuilder().setGroup(Constants.SERVICE_METADATA)
                .setOperation(DataOperation.ADD.name()).setData(ByteString.copyFrom(serializer.serialize(operation)))
                .build();
        submitMetadataOperation(operationLog);
    }
@Test
    void testAddClusterMetadata() {
        assertThrows(NacosRuntimeException.class, () -> {
            String clusterName = "clusterName";
            ClusterMetadata clusterMetadata = new ClusterMetadata();
            namingMetadataOperateService.addClusterMetadata(service, clusterName, clusterMetadata);
            
            Mockito.verify(service).getNamespace();
            Mockito.verify(service).getGroup();
            Mockito.verify(service).getName();
        });
    }