test cases for Java inherited dependency extraction