@Test public void testSimple() throws Exception { ModelConnection mc = getTestModel().createConnection(); Evaluator<RippleList, RippleList, ModelConnection> eval = new LazyStackEvaluator(); Collector<RippleList> expected = new Collector<>(); input = createStack(mc, one, two); expected.clear(); expected.accept(createStack(mc, one, two)); actual.clear(); eval.apply(input, actual, mc); assertCollectorsEqual(expected, actual); input = createStack(mc, one, dup, op); expected.clear(); expected.accept(createStack(mc, one, one)); actual.clear(); eval.apply(input, actual, mc); assertCollectorsEqual(expected, actual); input = createStack(mc, one, dup, op, dup, op); expected.clear(); expected.accept(createStack(mc, one, one, one)); actual.clear(); eval.apply(input, actual, mc); assertCollectorsEqual(expected, actual); input = createStack(mc, dup, op); expected.clear(); actual.clear();