MockResult<Ex1> stop = mapper.create("stop");
@SuppressWarnings("unchecked")
Result<Ex1> f = (Result<Ex1>) create(loader, name, mapper.toArguments());
Ex1 ex1 = new Ex1();
ex1.setValue(-100);
f.add(ex1);
assertThat(high.getResults().size(), is(0));
assertThat(low.getResults().size(), is(0));
assertThat(stop.getResults().size(), is(1));
assertThat(stop.getResults().get(0), is(ex1));
stop.getResults().clear();
ex1.setValue(0);
f.add(ex1);
assertThat(high.getResults().size(), is(0));
assertThat(low.getResults().size(), is(0));
assertThat(stop.getResults().size(), is(1));
assertThat(stop.getResults().get(0), is(ex1));
stop.getResults().clear();
ex1.setValue(1);
f.add(ex1);
assertThat(high.getResults().size(), is(0));
assertThat(low.getResults().size(), is(1));
assertThat(stop.getResults().size(), is(0));
assertThat(low.getResults().get(0), is(ex1));
low.getResults().clear();
ex1.setValue(50);
f.add(ex1);
assertThat(high.getResults().size(), is(0));
assertThat(low.getResults().size(), is(1));
assertThat(stop.getResults().size(), is(0));
assertThat(low.getResults().get(0), is(ex1));
low.getResults().clear();
ex1.setValue(100);
f.add(ex1);
assertThat(high.getResults().size(), is(0));
assertThat(low.getResults().size(), is(1));
assertThat(stop.getResults().size(), is(0));
assertThat(low.getResults().get(0), is(ex1));
low.getResults().clear();
ex1.setValue(101);
f.add(ex1);
assertThat(high.getResults().size(), is(1));
assertThat(low.getResults().size(), is(0));
assertThat(stop.getResults().size(), is(0));
assertThat(high.getResults().get(0), is(ex1));
high.getResults().clear();
ex1.setValue(150);
f.add(ex1);
assertThat(high.getResults().size(), is(1));
assertThat(low.getResults().size(), is(0));
assertThat(stop.getResults().size(), is(0));
assertThat(high.getResults().get(0), is(ex1));