void () { Expression e = MacroParser.parse(" variableOfType( \"java.util.Collection\" ) "); assertTrue(e instanceof MacroCallNode); MacroCallNode n = (MacroCallNode) e; assertTrue(n.getMacro() instanceof VariableOfTypeMacro); Expression[] parameters = n.getParameters(); assertEquals(1, parameters.length); assertTrue(parameters [0] instanceof ConstantNode); ConstantNode cn = (ConstantNode) parameters [0]; assertEquals("java.util.Collection", cn.calculateResult(null).toString()); }