@Test
public void testCompleteShouldAddPageAndSummaryAndTimingToResponse() throws Exception {
WikiTestPage page = new WikiTestPage(new WikiPageDummy("page", "content", null), null);
TestSummary summary = new TestSummary(1, 2, 3, 4);
ChunkedResponse response = mock(ChunkedResponse.class);
TestTextFormatter formatter = new TestTextFormatter(response);
formatter.testStarted(page);
clock.elapse(9800);
formatter.testComplete(page, summary);
verify(response).add("F " + START_TIME + " R:1 W:2 I:3 E:4 page\t()\t9" + getDecimalSeparator() + "800 seconds\n");