public Instance buildNacosInstanceFromRegistration() {
        Instance instance = new Instance();
        instance.setIp(RegisterContext.INSTANCE.getClientInfo().getIp());
        instance.setPort(RegisterContext.INSTANCE.getClientInfo().getPort());
        instance.setWeight(nacosRegisterConfig.getWeight());
        instance.setClusterName(nacosRegisterConfig.getClusterName());
        instance.setEnabled(nacosRegisterConfig.isInstanceEnabled());
        Map<String, String> metadata = RegisterContext.INSTANCE.getClientInfo().getMeta();
        if (!metadata.containsKey(ConfigConstants.SECURE)) {
            metadata.put(ConfigConstants.SECURE, String.valueOf(commonConfig.isSecure()));
        }
        instance.setMetadata(metadata);
        instance.setEphemeral(nacosRegisterConfig.isEphemeral());
        return instance;
    }
@Test
    public void testBuildNacosInstanceFromRegistration() {
        Instance instance = nacosServiceManager.buildNacosInstanceFromRegistration();
        Assert.assertNotNull(instance);
    }