### Question:
Console implements TestLineSubscriber, TestResultSubscriber { @Override public void processTestLine (final TestLine testLine) { int nrOfParts = testLine.getNrOfParts (); for (int partNr = 0; partNr < nrOfParts; ++partNr) { mStream.print ("'" + testLine.getPart (partNr) + "' "); } mStream.println (); } 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 testProcessTestLine () { assertFalse (mPrinter.anyInput ()); TestLineImpl testLine = new TestLineImpl (); testLine.createParts (1); testLine.setPart (0, "something"); mConsole.processTestLine (testLine); assertTrue (mPrinter.anyInput ()); }