### Question:
JavaCCParserBase { void setBase(String baseIri) throws PrefixDeclarationException { prefixDeclarationRegistry.setBaseIri(baseIri); } JavaCCParserBase(); void setKnowledgeBase(KnowledgeBase knowledgeBase); KnowledgeBase getKnowledgeBase(); void setParserConfiguration(ParserConfiguration parserConfiguration); ParserConfiguration getParserConfiguration(); void setPrefixDeclarationRegistry(PrefixDeclarationRegistry prefixDeclarationRegistry); PrefixDeclarationRegistry getPrefixDeclarationRegistry();  }### Answer:
@Test public void setBase_changingBase_throws() throws PrefixDeclarationException { exceptionRule.expect(PrefixDeclarationException.class); exceptionRule.expectMessage("Base is already defined as"); parserBase.setBase("https: parserBase.setBase("https: }