@Override
    public void print(String msg) {
        if (isNotIgnored(msg)) {
            out.append(msg);
        }
    }
{@link Console} implementation used in tests to capture the output of the {@link Exec} class.
hplsql/src/test/java/org/apache/hive/hplsql/TestConsole.java