### Question:
RuleParser { public static Term parseTerm(final String input, final FormulaContext context, final ParserConfiguration parserConfiguration) throws ParsingException { return parseSyntaxFragment(input, parser -> parser.term(context), "term", parserConfiguration); } private  RuleParser(); static void parseInto(final KnowledgeBase knowledgeBase, final InputStream stream, final String encoding,
			final ParserConfiguration parserConfiguration, final String baseIri); static void parseInto(final KnowledgeBase knowledgeBase, final InputStream stream, final String encoding,
			final ParserConfiguration parserConfiguration); static void parseInto(final KnowledgeBase knowledgeBase, final InputStream stream,
			final ParserConfiguration parserConfiguration, final String baseIri); static void parseInto(final KnowledgeBase knowledgeBase, final InputStream stream,
			final ParserConfiguration parserConfiguration); static void parseInto(final KnowledgeBase knowledgeBase, final String input,
			final ParserConfiguration parserConfiguration, final String baseIri); static void parseInto(final KnowledgeBase knowledgeBase, final String input,
			final ParserConfiguration parserConfiguration); static void parseInto(final KnowledgeBase knowledgeBase, final InputStream stream, final String encoding); static void parseInto(final KnowledgeBase knowledgeBase, final InputStream stream); static void parseInto(final KnowledgeBase knowledgeBase, final String input); static KnowledgeBase parse(final InputStream stream, final String encoding,
			final ParserConfiguration parserConfiguration); static KnowledgeBase parse(final InputStream stream, final ParserConfiguration parserConfiguration); static KnowledgeBase parse(final String input, final ParserConfiguration parserConfiguration); static KnowledgeBase parse(final InputStream stream, final String encoding); static KnowledgeBase parse(final InputStream stream); static KnowledgeBase parse(final String input); static Rule parseRule(final String input, final ParserConfiguration parserConfiguration); static Rule parseRule(final String input); static Literal parseLiteral(final String input, final ParserConfiguration parserConfiguration); static Literal parseLiteral(final String input); static PositiveLiteral parsePositiveLiteral(final String input,
			final ParserConfiguration parserConfiguration); static PositiveLiteral parsePositiveLiteral(final String input); static Fact parseFact(final String input, final ParserConfiguration parserConfiguration); static Fact parseFact(final String input); static Term parseTerm(final String input, final FormulaContext context,
			final ParserConfiguration parserConfiguration); static Term parseTerm(final String input, final ParserConfiguration parserConfiguration); static Term parseTerm(final String input, final FormulaContext context); static Term parseTerm(final String input); static DataSourceDeclaration parseDataSourceDeclaration(final String input,
			ParserConfiguration parserConfiguration); static DataSourceDeclaration parseDataSourceDeclaration(final String input); static final String DEFAULT_STRING_ENCODING; }### Answer:
@Test public void parseTerm_NamedNull_succeeds() throws ParsingException { String input = "_:blank"; Term result = RuleParser.parseTerm(input); assertUuid(result.getName()); }
@Test public void parseTerm_NamedNullInHead_succeeds() throws ParsingException { String input = "_:blank"; Term result = RuleParser.parseTerm(input, FormulaContext.HEAD); assertUuid(result.getName()); }
@Test(expected = ParsingException.class) public void parseTerm_NamedNullInBodyContext_throws() throws ParsingException { String input = "_:blank"; RuleParser.parseTerm(input, FormulaContext.BODY); }
@Test(expected = ParsingException.class) public void testNonIriTypeInDatatypeLiteral() throws ParsingException { final String input = "\"a\"^^whatever"; RuleParser.parseTerm(input); }