nit: I usually prefer using the [ExpectedException](https://junit.org/junit4/javadoc/4.12/org/junit/rules/ExpectedException.html) feature of junit as it would describe the test failure better (what was the actual exception vs the expected) and a bit more concise.
[ Full content available at: https://github.com/apache/kafka/pull/5691 ] This message was relayed via gitbox.apache.org for [email protected]
