### Question:
ParserConfiguration { public KnowledgeBase parseDirectiveStatement(String name, List<Argument> arguments, SubParserFactory subParserFactory) throws ParsingException { final DirectiveHandler<KnowledgeBase> handler = this.directives.get(name); if (handler == null) { throw new ParsingException("Directive \"" + name + "\" is not known."); } return handler.handleDirective(arguments, subParserFactory); } ParserConfiguration();  ParserConfiguration(ParserConfiguration other); ParserConfiguration registerDataSource(final String name, final DataSourceDeclarationHandler handler); DataSource parseDataSourceSpecificPartOfDataSourceDeclaration(PositiveLiteral declaration); Constant parseDatatypeConstant(final String lexicalForm, final String datatype,
			final TermFactory termFactory); boolean isConfigurableLiteralRegistered(ConfigurableLiteralDelimiter delimiter); Term parseConfigurableLiteral(ConfigurableLiteralDelimiter delimiter, String syntacticForm,
			final SubParserFactory subParserFactory); ParserConfiguration registerDatatype(final String name, final DatatypeConstantHandler handler); ParserConfiguration registerLiteral(ConfigurableLiteralDelimiter delimiter,
			ConfigurableLiteralHandler handler); ParserConfiguration registerDirective(String name, DirectiveHandler<KnowledgeBase> handler); KnowledgeBase parseDirectiveStatement(String name, List<Argument> arguments,
			SubParserFactory subParserFactory); ParserConfiguration setNamedNulls(boolean allow); ParserConfiguration allowNamedNulls(); ParserConfiguration disallowNamedNulls(); boolean isParsingOfNamedNullsAllowed(); String getImportBasePath(); ParserConfiguration setImportBasePath(String importBasePath); static final List<String> RESERVED_DIRECTIVE_NAMES; }### Answer:
@Test(expected = ParsingException.class) public void parseDirectiveStatement_unregisteredDirective_throws() throws ParsingException { parserConfiguration.parseDirectiveStatement(DIRECTIVE_NAME, new ArrayList<>(), subParserFactory); }