"int foo(int a) { return a; } " +
"int bar(int b) { return foo(foo(b)); } ");
FunctionDefinition functionBar = unit.getChild(1);
assertEquals("bar", functionBar.getName());
ReturnStatement returnStatement = functionBar.getChild(0);
FunctionInvocation callFoo = returnStatement.getExpression(0);
assertEquals("foo", callFoo.getName());
NodeList parameters = callFoo.getParameters();
FunctionInvocation callFooAgain = parameters.get(0);
assertEquals("foo", callFooAgain.getName());
assertEquals(0, callFooAgain.getChildren().size());
}