testLexerThrowsExceptionIfAssociativeArrayIsNotValid