public void testImportsErrors() throws Exception {
final ParserImpl p1 = parserImpl("import");
checkError(list(_UnexpectedToken("a package name", "<EOF>", 1)), list(Imprt._Imprt(NO_COMMENTS, "NO_IDENTIFIER@1")), p1.imports(), p1);
final ParserImpl p2 = parserImpl("import 42");
checkError(list(_UnexpectedToken("a package name", "'42'", 1)), list(Imprt._Imprt(NO_COMMENTS, "BAD_IDENTIFIER_42@1")), p2.imports(), p2);
final ParserImpl p3 = parserImpl("import boolean");
checkError(list(_UnexpectedToken("a package name", "'boolean'", 1)), list(Imprt._Imprt(NO_COMMENTS, "BAD_IDENTIFIER_boolean@1")), p3.imports(), p3);
final ParserImpl p4 = parserImpl("import import boolean");