@FixFor( "MODE-869" )
@Test
public void shouldParseStaticOperandWithSubqueryWithoutConsumingExtraTokens() {
QueryCommand expected = parser.parseQuery(tokens("SELECT * FROM tableA"), typeSystem);
TokenStream tokens = tokens("SELECT * FROM tableA)");
StaticOperand operand = parser.parseStaticOperand(tokens, typeSystem);
assertThat(operand, is(instanceOf(Subquery.class)));
Subquery subquery = (Subquery)operand;
assertThat(subquery.getQuery(), is(expected));
assertThat(tokens.canConsume(')'), is(true));
}