private void assertResultIsValid(List<CssValueNode> result, String expectedJavaExpression) {
assertEquals(1, result.size());
assertTrue(result.get(0) instanceof CssFunctionNode);
CssFunctionArgumentsNode arguments = ((CssFunctionNode) result.get(0)).getArguments();
assertEquals(1, arguments.numChildren());
assertTrue(arguments.getChildAt(0) instanceof CssJavaExpressionNode);
CssJavaExpressionNode javaExpressionNode = (CssJavaExpressionNode) arguments.getChildAt(0);
assertEquals(expectedJavaExpression, javaExpressionNode.getValue());
verify(errorManager, never()).report(any(GssError.class));
verify(errorManager, never()).reportWarning(any(GssError.class));
}