Java Parser and test cases