void loadState(final long nextServiceSessionId, final long logServiceSessionId, final int pendingMessageCapacity)
    {
        this.nextServiceSessionId = nextServiceSessionId;
        this.logServiceSessionId = logServiceSessionId;
        pendingMessages.reset(pendingMessageCapacity);
    }
@Test
    void loadInvalid()
    {
        final CountersManager countersManager = Tests.newCountersManager(16 * 1024);
        final int counterId = countersManager.allocate("test");
        final Counter counter = new Counter(countersManager, 0, counterId);
        final LogPublisher logPublisher = mock(LogPublisher.class);

        final TestClusterClock clusterClock = new TestClusterClock(TimeUnit.MILLISECONDS);

        final PendingServiceMessageTracker tracker = new PendingServiceMessageTracker(
            0, counter, logPublisher, clusterClock);

        tracker.loadState(-9223372036854774166L, -9223372036854774166L, 0);
        assertThrows(ClusterException.class, tracker::verify);
    }