private long replayStartPosition(final RecordingLog.Entry lastTerm)
    {
        return replayStartPosition(lastTerm, snapshotsRetrieved, ctx.initialReplayStart(), backupArchive);
    }
@Test
    void shouldReturnReplayStartPositionIfAlreadyExisting()
    {
        final long expectedStartPosition = 892374;
        final long recordingId = 234;
        final RecordingLog.Entry lastTerm = new RecordingLog.Entry(
            recordingId, 0, 0, expectedStartPosition, 0, 0, 0, null, true, 0);

        when(mockAeronArchive.getStopPosition(anyLong())).thenReturn(expectedStartPosition);

        final long replayStartPosition = replayStartPosition(
            lastTerm, emptyList(), ReplayStart.BEGINNING, mockAeronArchive);
        assertEquals(expectedStartPosition, replayStartPosition);
    }