@Test
public void testAddIllegalParameters() {

  final MetricsRegistry r = new MetricsRegistry("IllegalParamTest");
  expectMetricsException("Interval should be positive.  Value passed is: -20",
      new Runnable() {
    @Override
    public void run() {
        r.newQuantiles("q1", "New Quantile 1", "qq1", "qv1", (int)-20);
    }
  });
}