String classname = "org/apache/maven/jxr/DirectoryIndexer.class";
ClassParser classParser = new ClassParser( jxrjar.getAbsolutePath(), classname );
JavaClass javaClass = classParser.parse();
ImportVisitor importVisitor = new ImportVisitor( javaClass );
DescendingVisitor descVisitor = new DescendingVisitor( javaClass, importVisitor );
javaClass.accept( descVisitor );
List imports = importVisitor.getImports();
assertNotNull( "Import List", imports );