### Question:
AbstractPerformanceSampler extends AbstractObjectProperties implements PerformanceSampler { @Override public void setRampDownPercent(long rampDownPercent) { Validate.isTrue((rampDownPercent >= 0) && (rampDownPercent < 100), "rampDownPercent must be a value between 0 and 99"); this.rampDownPercent = rampDownPercent; }  @Override Long getRampUpTime(); @Override void setRampUpTime(long rampUpTime); @Override Long getRampDownTime(); @Override void setRampDownTime(long rampDownTime); @Override Long getDuration(); @Override void setDuration(long duration); @Override long getInterval(); @Override void setInterval(long interval); @Override long getRampUpPercent(); @Override void setRampUpPercent(long rampUpPercent); @Override long getRampDownPercent(); @Override void setRampDownPercent(long rampDownPercent); @Override PerformanceReportWriter getPerfReportWriter(); @Override void setPerfReportWriter(PerformanceReportWriter perfReportWriter); @Override PerformanceEventListener getPerfEventListener(); @Override void setPerfEventListener(PerformanceEventListener perfEventListener); @Override void startSampler(CountDownLatch completionLatch, ClientRunBasis clientRunBasis, long clientRunDuration); @Override void finishSampling(); @Override void run(); @Override abstract void sampleData();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testSetRampDownPercent_exceeds99() { sampler.setRampDownPercent(100); }
@Test(expected = IllegalArgumentException.class) public void testSetRampDownPercent_lessThan0() { sampler.setRampDownPercent(-1); }