### Question:
StatisticsTable { public StatisticsTable(final StatisticsView statisticsView, final StatisticsIndexMap statisticsIndexMap, final TestStatisticsMap testStatisticsMap) { m_statisticsView = statisticsView; m_testStatisticsMap = testStatisticsMap; m_periodIndex = statisticsIndexMap.getLongIndex("period"); } StatisticsTable(final StatisticsView statisticsView,
                         final StatisticsIndexMap statisticsIndexMap,
                         final TestStatisticsMap testStatisticsMap); final void print(final PrintWriter out, final long elapsedTime);  }### Answer:
@Test public void testStatisticsTable() throws Exception { final StringWriter expected = new StringWriter(); final PrintWriter in = new PrintWriter(expected); in.println(" A B A plus B A divided by "); in.println(" B "); in.println(); in.println("Test 3 1 2 3 0.50 "); in.println("Test 9 0 1 1 0.00 \"Test 9\""); in.println("Test 113 0 0 0 - \"Another test\""); in.println("Test 12345678 3 4 7 0.75 \"A test with a long name\""); in.println(); in.println("Totals 4 7 11 0.57 "); in.close(); final StatisticsTable table = new StatisticsTable(m_statisticsView, m_indexMap, m_testStatisticsMap); final StringWriter output = new StringWriter(); final PrintWriter out = new PrintWriter(output); table.print(out, 1234); out.close(); AssertUtilities.assertContains( output.getBuffer().toString(), expected.getBuffer().toString()); }