@Test
public void shouldParseStaticOperandFromStringWithLiteralValue() {
StaticOperand operand = parser.parseStaticOperand(tokens("CAST(123 AS DOUBLE)"), typeSystem);
assertThat(operand, is(instanceOf(Literal.class)));
Literal literal = (Literal)operand;
assertThat((Double)literal.value(), is(typeSystem.getDoubleFactory().create("123")));
}