((ImportDescr) imports.get( 1 )).getTarget() );
final List globals = packageDescr.getGlobals();
assertEquals( 2,
globals.size() );
final GlobalDescr x = (GlobalDescr) globals.get( 0 );
final GlobalDescr yada = (GlobalDescr) globals.get( 1 );
assertEquals( "com.sample.X",
x.getType() );
assertEquals( "x",
x.getIdentifier() );
assertEquals( "com.sample.Yada",
yada.getType() );
assertEquals( "yada",
yada.getIdentifier() );
final FunctionDescr functionDescr = (FunctionDescr) packageDescr.getFunctions().get( 0 );
final List names = functionDescr.getParameterNames();
assertEquals( "foo",
names.get( 0 ) );