impdescr.getEndCharacter() );
assertEquals( 2,
pkg.getGlobals().size() );
GlobalDescr global = pkg.getGlobals().get( 0 );
assertEquals( "java.util.List<java.util.Map<String,Integer>>",
global.getType() );
assertEquals( "aList",
global.getIdentifier() );
assertEquals( source.indexOf( "global " + global.getType() ),
global.getStartCharacter() );
assertEquals( source.indexOf( "global " + global.getType() + " " + global.getIdentifier() ) +
("global " + global.getType() + " " + global.getIdentifier()).length() + 1,
global.getEndCharacter() );
global = pkg.getGlobals().get( 1 );
assertEquals( "Integer",
global.getType() );
assertEquals( "aNumber",
global.getIdentifier() );
assertEquals( source.indexOf( "global " + global.getType() ),
global.getStartCharacter() );
assertEquals( source.indexOf( "global " + global.getType() + " " + global.getIdentifier() ) +
("global " + global.getType() + " " + global.getIdentifier()).length(),
global.getEndCharacter() );
}