@Override
    public void register(ServiceCombRegistration registration) {
        fillClientInfo(registration);
        GraceHelper.configWarmUpParams(registration.getMetadata(),
                PluginConfigManager.getPluginConfig(GraceConfig.class));
        ZoneUtils.setZone(registration.getMetadata());
        RegisterCenterService registerService = getRegisterCenterService();
        if (registerService == null) {
            LOGGER.severe("registerCenterService is null, fail to register!");
            return;
        }
        registerService.register(new FixedResult());
    }
@Test
    public void register() {
        String host = "localhost";
        Map<String, String> meta = new HashMap<>();
        int port = 8888;
        String serviceId = "test";
        Mockito.when(registration.getHost()).thenReturn(host);
        Mockito.when(registration.getMetadata()).thenReturn(meta);
        Mockito.when(registration.getPort()).thenReturn(port);
        Mockito.when(registration.getServiceId()).thenReturn(serviceId);
        registry.register(registration);
        final ClientInfo clientInfo = RegisterContext.INSTANCE.getClientInfo();
        Assert.assertEquals(clientInfo.getHost(), host);
        Assert.assertEquals(clientInfo.getMeta(), meta);
        Assert.assertEquals(clientInfo.getPort(), port);
        Assert.assertEquals(clientInfo.getServiceId(), serviceId);
        Mockito.verify(spyService, Mockito.times(1)).register(Mockito.any());
        clientInfo.setServiceId(null);
        clientInfo.setHost(null);
        clientInfo.setZone(null);
        clientInfo.setMeta(null);
        clientInfo.setPort(0);
    }