public String getStatus() {
        return String.format("Publisher %-30s: shutdown=%5s, queue=%7d/%-7d", publisherName, shutdown,
                currentEventSize(), queueMaxSize);
    }
@Test
    void getStatus() throws NacosException {
        traceEventPublisher.publish(new TraceTestEvent());
        traceEventPublisher.publish(new TraceTestEvent.TraceTestEvent1());
        traceEventPublisher.publish(new TraceTestEvent.TraceTestEvent2());
        String expectedStatus = "Publisher TraceTestEvent                : shutdown=false, queue=      3/8      ";
        assertEquals(traceEventPublisher.getStatus(), expectedStatus);
        traceEventPublisher.addSubscriber(subscriber, TraceTestEvent.TraceTestEvent1.class);
        ThreadUtils.sleep(2000L);
        expectedStatus = "Publisher TraceTestEvent                : shutdown=false, queue=      0/8      ";
        assertEquals(traceEventPublisher.getStatus(), expectedStatus);
        traceEventPublisher.shutdown();
        expectedStatus = "Publisher TraceTestEvent                : shutdown= true, queue=      0/8      ";
        assertEquals(traceEventPublisher.getStatus(), expectedStatus);
    }