### Question:
RuleParser { public static PositiveLiteral parsePositiveLiteral(final String input, final ParserConfiguration parserConfiguration) throws ParsingException { return parseSyntaxFragment(input, parser -> parser.positiveLiteral(FormulaContext.HEAD), "positive literal", 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 testPositiveLiteral() throws ParsingException { String input = "<http: Literal literal = RuleParser.parsePositiveLiteral(input); assertEquals(atom1, literal); }
@Test(expected = ParsingException.class) public void testPositiveLiteralError() throws ParsingException { String input = "~ <http: RuleParser.parsePositiveLiteral(input); }