public void select(RoutingContext ctx) {
            int idx = this.idx++;
            int err = errors.get(idx < errors.size() ? idx : errors.size() - 1);
            if (err != ErrorCode.NONE) {
                ctx.setError(err, param);
            } else {
                ctx.setReply(new EmptyReply());
            }
            ctx.setSelectOnRetry(selectOnRetry);
        }
@author havardpe
@author Simon Thoresen Hult
messagebus/src/test/java/com/yahoo/messagebus/routing/RoutingTestCase.java