public void testConstructNamespace() throws IOException,
TokenException,
PMDException
{
final IParserNode ast = FileSetUtils.buildAst( getTestFiles().get( "schedule_internal.as" ) );
final IPackage namespacePackage = NodeFactory.createPackage( ast );
assertNull( namespacePackage.getClassNode() );
assertEquals( "flexlib.scheduling.scheduleClasses",
namespacePackage.getName() );
assertEquals( 0,
namespacePackage.getImports().size() );
}