@Test
public void test02() {

    List<Integer> expectedResult = new ArrayList<>();
    for (int i = -99; i <= 99; i++) {
        expectedResult.add(i);
    }
    final List<Integer> result0 = new ArrayList<>();
    new RangeExpressionParser("[-99..99]").visit(new RangeExpressionItemVisitor() {
        @Override
        public void visit(Object val) {
            result0.add((Integer) val);
        }
    });
    Assert.equals(result0, expectedResult);
    expectedResult = new ArrayList<Integer>();
    for (int i = 99; i >= -99; i--) {
        expectedResult.add(i);
    }
    final List<Integer> result1 = new ArrayList<>();
    new RangeExpressionParser("[99..-99]").visit(new RangeExpressionItemVisitor() {
        @Override
        public void visit(Object val) {
            result1.add((Integer) val);
        }
    });
    Assert.equals(result1, expectedResult);
}