### Question:
ServerStats { public void reset() { resetLatency(); resetRequestCounters(); clientResponseStats.reset(); ServerMetrics.getMetrics().resetAll(); } ServerStats(Provider provider); long getMinLatency(); double getAvgLatency(); long getMaxLatency(); long getOutstandingRequests(); long getLastProcessedZxid(); long getDataDirSize(); long getLogDirSize(); long getPacketsReceived(); long getPacketsSent(); String getServerState(); int getNumAliveClientConnections(); long getUptime(); boolean isProviderNull(); @Override String toString(); void updateLatency(Request request, long currentTime); void resetLatency(); void resetMaxLatency(); void incrementPacketsReceived(); void incrementPacketsSent(); void resetRequestCounters(); long getFsyncThresholdExceedCount(); void incrementFsyncThresholdExceedCount(); void resetFsyncThresholdExceedCount(); void reset(); void updateClientResponseSize(int size); BufferStats getClientResponseStats();  }### Answer:
@Test public void testReset() { ServerStats serverStats = new ServerStats(providerMock); assertAllPacketsZero(serverStats); assertAllLatencyZero(serverStats); Request fakeRequest = new Request(0, 0, 0, null, null, 0); serverStats.incrementPacketsSent(); serverStats.incrementPacketsReceived(); serverStats.updateLatency(fakeRequest, fakeRequest.createTime + 1000); serverStats.reset(); assertAllPacketsZero(serverStats); assertAllLatencyZero(serverStats); }