### Question:
StatisticsHandlerTimer extends AbstractStatisticsHandlerNumeric implements IMutableStatisticsHandlerTimer { public void addTime (@Nonnegative final long nMillis) { if (nMillis < 0) if (LOGGER.isWarnEnabled ()) LOGGER.warn ("A negative value (" + nMillis + ") is added to " + getClass ().getName ()); addValue (nMillis); }  void addTime(@Nonnegative final long nMillis);  }### Answer:
@SuppressFBWarnings ("TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED") @Test public void testAll () { final StatisticsHandlerTimer sh = new StatisticsHandlerTimer (); assertEquals (0, sh.getInvocationCount ()); assertEquals (CGlobal.ILLEGAL_UINT, sh.getMin ()); assertEquals (CGlobal.ILLEGAL_UINT, sh.getAverage ()); assertEquals (CGlobal.ILLEGAL_UINT, sh.getMax ()); assertEquals (BigInteger.ZERO, sh.getSum ()); sh.addTime (5); assertEquals (1, sh.getInvocationCount ()); assertEquals (5, sh.getMin ()); assertEquals (5, sh.getAverage ()); assertEquals (5, sh.getMax ()); assertEquals (BigInteger.valueOf (5), sh.getSum ()); sh.addTime (45); assertEquals (2, sh.getInvocationCount ()); assertEquals (5, sh.getMin ()); assertEquals (25, sh.getAverage ()); assertEquals (45, sh.getMax ()); assertEquals (BigInteger.valueOf (50), sh.getSum ()); sh.addTime (25); assertEquals (3, sh.getInvocationCount ()); assertEquals (5, sh.getMin ()); assertEquals (25, sh.getAverage ()); assertEquals (45, sh.getMax ()); assertEquals (BigInteger.valueOf (75), sh.getSum ()); sh.addTime (-1); }