@SuppressWarnings("unchecked")
    public <K, V> VersionedKeyValueStore<K, V> getVersionedKeyValueStore(final String name) {
        final StateStore store = getStateStore(name, false);
        return store instanceof VersionedKeyValueStore ? (VersionedKeyValueStore<K, V>) store : null;
    }
Get the {@link VersionedKeyValueStore} with the given name.
The store can be a "regular" or global store.
<p>
This is often useful in test cases to pre-populate the store before the test case instructs the topology to
{@link TestInputTopic#pipeInput(TestRecord) process an input message}, and/or to check the store afterward.

@param name the name of the store
@return the key value store, or {@code null} if no {@link VersionedKeyValueStore} has been registered with the given name
@see #getAllStateStores()
@see #getStateStore(String)
@see #getKeyValueStore(String)
@see #getTimestampedKeyValueStore(String)
@see #getWindowStore(String)
@see #getTimestampedWindowStore(String)
@see #getSessionStore(String)
streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java