Java Parser and Test Cases