public void injectOnCommitError(boolean on) {
            throwExceptionOnCommit = on;
        }
Test consumer interceptor that filters records in onConsume() intercept
clients/src/test/java/org/apache/kafka/clients/consumer/internals/ConsumerInterceptorsTest.java