public void updateInstanceStatus(String status) {
        if (!STATUS_UP.equalsIgnoreCase(status) && !STATUS_DOWN.equalsIgnoreCase(status)) {
            LOGGER.warning(String.format(Locale.ENGLISH,"can't support status={%s},"
                    + "please choose UP or DOWN", status));
            return;
        }
        String serviceId = RegisterContext.INSTANCE.getClientInfo().getServiceId();
        String group = nacosRegisterConfig.getGroup();
        Instance updateInstance = nacosServiceManager.buildNacosInstanceFromRegistration();
        updateInstance.setEnabled(!STATUS_DOWN.equalsIgnoreCase(status));
        try {
            nacosServiceManager.getNamingMaintainService().updateInstance(serviceId, group, updateInstance);
        } catch (NacosException e) {
            LOGGER.log(Level.SEVERE, String.format(Locale.ENGLISH, "update nacos instance status failed,"
                    + "serviceId={%s}", serviceId), e);
        }
    }
@Test
    public void testUpdateInstanceStatus() throws NacosException {
        mockNamingService();
        nacosClient.updateInstanceStatus(STATUS_DOWN);
        Assert.assertNotNull(ReflectUtils.getFieldValue(nacosClient, "instance"));
    }