@SuppressWarnings("deprecation")
    private static <T> Set<T> asJavaSet(scala.collection.immutable.Set<T> scalaSet) {
        return JavaConverters.setAsJavaSet(scalaSet);
    }
Capture both the console output and console error during the execution of the provided function.
core/src/test/java/kafka/admin/AclCommandTest.java