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