### Question:
Console implements TestLineSubscriber, TestResultSubscriber { @Override public void processStackTrace (String[] stackTraceLines) { mStream.println ("stack trace:"); int nrOfElements = stackTraceLines.length; for (int elementNr = 0; elementNr < nrOfElements; ++elementNr) { mStream.println ("\t" + stackTraceLines[elementNr]); } } Console();   Console(PrintStream stream); @Override void start(Date dateTime); @Override void finish(Date dateTime); @Override void processTestLine(final TestLine testLine); @Override void processCommentLine(final String testLine); @Override void processCommentLine(final TestLine testLine); @Override void processStackTrace(String[] stackTraceLines); @Override void processError(final String error); @Override void processWarning(final String warning); @Override void processInfo(final String message); @Override void processLink(String url); @Override void processEndSection(); @Override void processIncreaseLevel(); @Override void processDecreaseLevel(); @Override void processEndOfTestLine();  }### Answer:
@Test public void testProcessStackTrace () { assertFalse (mPrinter.anyInput ()); mConsole.processStackTrace (new String[0]); assertTrue (mPrinter.anyInput ()); }