@Test
public void errorTest02() {

    new RangeExpressionParser("[]").visit(new RangeExpressionItemVisitor() {
        @Override
        public void visit(Object val) {
            throw new Error();
        }
    });
    new RangeExpressionParser("ab[]").visit(new RangeExpressionItemVisitor() {
        @Override
        public void visit(Object val) {
            throw new Error();
        }
    });
    new RangeExpressionParser("[]cd").visit(new RangeExpressionItemVisitor() {
        @Override
        public void visit(Object val) {
            throw new Error();
        }
    });
    new RangeExpressionParser("ab[]cd").visit(new RangeExpressionItemVisitor() {
        @Override
        public void visit(Object val) {
            throw new Error();
        }
    });
    new RangeExpressionParser("[1..2]ab[]cd[3..4]").visit(new RangeExpressionItemVisitor() {
        @Override
        public void visit(Object val) {
            throw new Error();
        }
    });
}