public boolean isEmpty() {
        return messagesProcessed == 0 && errorsOccurred == 0;
    }
@Test
    void testIsEmpty() {
        StatsPersistMsg emptyStats = new StatsPersistMsg(0, 0, TenantId.SYS_TENANT_ID, TenantId.SYS_TENANT_ID);
        assertThat(emptyStats.isEmpty()).isTrue();
    }