@Override
        public void register(final TopicPartition partition, final ProcessorStateManager stateManager) {
            restoringPartitions.add(partition);
        }
Close the driver, its topology, and all processors.
streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java