private SubscriptContext analyzeSubscript(String expressionString) {
Analyzer.ParameterContext parameterContext = mock(Analyzer.ParameterContext.class);
when(parameterContext.getAsSymbol(anyInt())).thenReturn(new Parameter(currentParameter));
SubscriptContext context = new SubscriptContext(parameterContext);
Expression expression = SqlParser.createExpression(expressionString);
expression.accept(visitor, context);
return context;
}
@Test
public void testVisitSubscriptExpression() throws Exception {