@Test
public void nextAvailableKeysNextReturnsNextReaderKeyIfReaderIndexLowerThanWriterIndex() {

    // given
    CharSequence expectedFirstKey = getNextExpectedKey(RESERVED_KEYS + 1);
    CharSequence expectedSecondKey = getNextExpectedKey(RESERVED_KEYS + 2);
    KeySequenceConfig config = createDefaultTestWriterIndexConfig(RESERVED_KEYS + 2);
    KeySequence sequence = createDefaultTestUUIDSequence(config);
    Iterator<CharSequence> iterator = sequence.nextReaderKeys(2);
    // when
    CharSequence readerKey1 = iterator.next();
    CharSequence readerKey2 = iterator.next();
    // then
    assertEquals(expectedFirstKey, readerKey1);
    assertEquals(expectedSecondKey, readerKey2);
}