IDEATestNGRemoteListener (final StringBuffer buf) { return new IDEATestNGRemoteListener(new PrintStream(new OutputStream() { @Override public void write(int b) { buf.append(new String(new byte[]{(byte)b}, StandardCharsets.UTF_8)); } })) { @Override protected String getTrace(Throwable tr) { return StringUtil.convertLineSeparators(super.getTrace(tr)); } }; }