public class BoundedThresholdManagerTest {
@Test
public void testThresholdCrossedAscending() throws Exception {
BoundedThresholdManager thresholdManager = new BoundedThresholdManager("foo");
ThresholdValues thresholdValues = new ThresholdValues(0, 5);
thresholdManager.setThresholdValues(thresholdValues);
MyThresholdListener listener = new MyThresholdListener();
thresholdManager.addThresholdListener(listener);
for(Calculable calculable : makeCalculables(20)) {
thresholdManager.checkThreshold(calculable);