TimeStampRecorder implements RecordedTimeStamps { public void completedWriteHeaders() { completedWriteHeaders = timeProvider.currentTimeInMillis(); } TimeStampRecorder(TimeProvider timeProvider); void recordCreatedRequest(); void startWriteHeaders(); void completedWriteHeaders(); void startWriteBody(); void completedWriteBody(); void completedWriteLastBody(); void readResponseHttpHeaders(); void responseBodyStart(); void responseBodyCompleted(); @Override long getCreatedRequest(); @Override long getStartWriteHeaders(); @Override long getCompletedWriteHeaders(); @Override long getStartWriteBody(); @Override long getCompletedWriteBody(); @Override long getCompletedWriteLastBody(); @Override long getReadResponseHttpHeaders(); @Override long getResponseBodyStart(); @Override long getResponseBodyCompleted(); @Override long getCompleteRequestTime(); @Override long getRequestTime(); @Override long getResponseTime(); @Override long getServerProcessTime(); @Override String toString();  }
@Test public void completedWriteHeaders() throws Exception { timeStampRecorder.completedWriteHeaders(); assertEquals(5005, timeStampRecorder.getCompletedWriteHeaders()); }