### Question:
KnowledgeBase implements Iterable<Statement> { public String resolvePrefixedName(String prefixedName) throws PrefixDeclarationException { return this.prefixDeclarationRegistry.resolvePrefixedName(prefixedName); }  void addListener(final KnowledgeBaseListener listener); void deleteListener(final KnowledgeBaseListener listener); void addStatement(final Statement statement); void addStatements(final Collection<? extends Statement> statements); void addStatements(final Statement... statements); int removeStatement(final Statement statement); int removeStatements(final Collection<? extends Statement> statements); int removeStatements(final Statement... statements); List<Rule> getRules(); List<Fact> getFacts(); List<DataSourceDeclaration> getDataSourceDeclarations(); Collection<Statement> getStatements(); @Override Iterator<Statement> iterator(); void importRulesFile(File file, AdditionalInputParser parseFunction); void mergePrefixDeclarations(PrefixDeclarationRegistry prefixDeclarationRegistry); PrefixDeclarationRegistry getPrefixDeclarationRegistry(); String getBaseIri(); Iterator<Entry<String, String>> getPrefixes(); String getPrefixIri(String prefixName); String resolvePrefixedName(String prefixedName); String unresolveAbsoluteIri(String iri); void writeKnowledgeBase(Writer writer); @Deprecated void writeKnowledgeBase(String filePath);  }### Answer:
@Test(expected = PrefixDeclarationException.class) public void resolvePrefixedName_defaultUndeclaredPrefix_throws() throws PrefixDeclarationException { this.kb.resolvePrefixedName("ex:test"); }