Implement the parser's expect() function

Also start implementing parser tests.
I'd suggest to make the test cases easier by parsing real source code instead of Tokens (e.g. something like 
`parser = createParserFromSource("public class C {public static void main(String[] args)}")`
). This will simplify the test cases a lot. Being dependent on a correct parser should be the lesser evil.