public void addEntryToRestoreLog(final K key, final V value) {
        restorableEntries.add(new KeyValue<>(stateSerdes.rawKey(key), stateSerdes.rawValue(value)));
    }
This method adds an entry to the "restore log" for the {@link KeyValueStore}, and is used <em>only</em> when testing the
restore functionality of a {@link KeyValueStore} implementation.
<p>
To create such a test, create the test driver, call this method one or more times, and then create the
{@link KeyValueStore}. Your tests can then check whether the store contains the entries from the log.

<pre>
// Set up the driver and pre-populate the log ...
KeyValueStoreTestDriver&lt;Integer, String> driver = KeyValueStoreTestDriver.create();
driver.addRestoreEntry(1,"value1");
driver.addRestoreEntry(2,"value2");
driver.addRestoreEntry(3,"value3");

// Create the store using the driver's context ...
ProcessorContext context = driver.context();
KeyValueStore&lt;Integer, String> store = ...

// Verify that the store's contents were properly restored from the log ...
assertEquals(0, driver.checkForRestoredEntries(store));

// and there are no other entries ...
assertEquals(3, driver.sizeOf(store));
</pre>

@param key   the key for the entry
@param value the value for the entry
@see #checkForRestoredEntries(KeyValueStore)
streams/src/test/java/org/apache/kafka/streams/state/KeyValueStoreTestDriver.java