    @Test
    void testInitializeSegmentThrowsUnableToInitializeTokenExceptionForDuplicateKey() {

        GlobalSequenceTrackingToken testToken = new GlobalSequenceTrackingToken(100);
        tokenStore.initializeSegment(testToken, testProcessorName, testSegment);
        // Initializes the given token twice, causing the exception
        assertThrows(
                UnableToInitializeTokenException.class,
                () -> tokenStore.initializeSegment(testToken, testProcessorName, testSegment)
        );
    }