Add parser unit test for invalid inputs.

The tests runs the parser on each *.java file in
src/test/resources/invalid and fails if it does _not_ throw a
ParserException.