### Question:
StatisticsHandlerSize extends AbstractStatisticsHandlerNumeric implements IMutableStatisticsHandlerSize { public void addSize (@Nonnegative final long nSize) { if (nSize < 0) if (LOGGER.isWarnEnabled ()) LOGGER.warn ("A negative value (" + nSize + ") is added to " + getClass ().getName ()); addValue (nSize); }  void addSize(@Nonnegative final long nSize);  }### Answer:
@SuppressFBWarnings ("TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED") @Test public void testAll () { final StatisticsHandlerSize sh = new StatisticsHandlerSize (); 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.addSize (5); assertEquals (1, sh.getInvocationCount ()); assertEquals (5, sh.getMin ()); assertEquals (5, sh.getAverage ()); assertEquals (5, sh.getMax ()); assertEquals (BigInteger.valueOf (5), sh.getSum ()); sh.addSize (45); assertEquals (2, sh.getInvocationCount ()); assertEquals (5, sh.getMin ()); assertEquals (25, sh.getAverage ()); assertEquals (45, sh.getMax ()); assertEquals (BigInteger.valueOf (50), sh.getSum ()); sh.addSize (25); assertEquals (3, sh.getInvocationCount ()); assertEquals (5, sh.getMin ()); assertEquals (25, sh.getAverage ()); assertEquals (45, sh.getMax ()); assertEquals (BigInteger.valueOf (75), sh.getSum ()); sh.addSize (-1); }