### Question:
QueryCompilerPass2 extends AqlBaseListener { Integer getOffsetAttribute() { return offsetAttribute; }  @Override void exitObjectPath(AqlParser.ObjectPathContext objectPathContext); @Override void exitSelectExpr(AqlParser.SelectExprContext selectExprContext); @Override void exitTopExpr(AqlParser.TopExprContext context); @Override void exitOrderBySeq(AqlParser.OrderBySeqContext context); @Override void exitOffset(AqlParser.OffsetContext ctx); @Override void exitLimit(AqlParser.LimitContext ctx); @Override void exitFunction(AqlParser.FunctionContext functionContext); List<I_VariableDefinition> getVariables();  }### Answer:
@Test public void getOffsetAttribute() { ParseTreeWalker walker = new ParseTreeWalker(); { QueryCompilerPass2 cut = new QueryCompilerPass2(); String aql = "select e/ehr_id/value " + "from EHR e "; ParseTree tree = QueryHelper.setupParseTree(aql); walker.walk(cut, tree); Integer actual = cut.getOffsetAttribute(); assertThat(actual).isNull(); } { QueryCompilerPass2 cut = new QueryCompilerPass2(); String aql = "select e/ehr_id/value " + "from EHR e OFFSET 6 "; ParseTree tree = QueryHelper.setupParseTree(aql); walker.walk(cut, tree); Integer actual = cut.getOffsetAttribute(); assertThat(actual).isEqualTo(6); } }