THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
KafkaStreams itself is a notable example of this, but we can take the opportunity to look for other components that make sense as AutoCloseable as well."
So in conclusion, by implementing AutoCloseable, the class can use in a try-with-resources Statement.
From AutoCloseable's Javadoc:
...