public String getInstanceStatus() {
        String serviceId = RegisterContext.INSTANCE.getClientInfo().getServiceId();
        String group = nacosRegisterConfig.getGroup();
        try {
            NamingService namingService = nacosServiceManager.getNamingService();
            List<Instance> instances = namingService.getAllInstances(serviceId, group);
            for (Instance serviceInstance : instances) {
                if (serviceInstance.getIp().equalsIgnoreCase(RegisterContext.INSTANCE.getClientInfo().getIp())
                        && serviceInstance.getPort() == RegisterContext.INSTANCE.getClientInfo().getPort()) {
                    return serviceInstance.isEnabled() ? "UP" : "DOWN";
                }
            }
        } catch (NacosException e) {
            LOGGER.log(Level.SEVERE, String.format(Locale.ENGLISH, "getInstanceStatus failed,serviceId={%s}",
                    serviceId), e);
        }
        return STATUS_UNKNOW;
    }
@Test
    public void testGetInstanceStatus() throws NacosException {
        mockNamingService();
        Assert.assertNotNull(nacosClient.getInstanceStatus());
    }