}
public void testAcceptUntilAuthority() throws URISyntaxException {
// actually only until the authority:
MmiUri mmiUri = new MmiUri("http://mmisw.org/ont/mmi", true);
assertEquals("mmi", mmiUri.getAuthority());
assertEquals("", mmiUri.getExtension());
assertEquals("", mmiUri.getTopic());
// actually only until the authority including extension:
mmiUri = new MmiUri("http://mmisw.org/ont/mmi.rdf", true);
assertEquals("mmi", mmiUri.getAuthority());
assertEquals(".rdf", mmiUri.getExtension());
assertEquals("", mmiUri.getTopic());
// but with other stuff as well:
mmiUri = new MmiUri("http://mmisw.org/ont/mmi/someVocab", true);
assertEquals("someVocab", mmiUri.getTopic());
assertEquals("mmi", mmiUri.getAuthority());
}