Assert.assertTrue(mappingFile.isFile());
service = new StanbolNamespacePrefixService(mappingFile);
}
@Test
public void testInitialisationWithoutLocalMappingFIle() throws IOException {
StanbolNamespacePrefixService service = new StanbolNamespacePrefixService(null);
service.setPrefix("dummy", "http://www.dummy.org/dummy#");
Assert.assertEquals("http://www.dummy.org/dummy#", service.getNamespace("dummy"));
service.importPrefixMappings(new ByteArrayInputStream(
"dummy2\thttp://www.dummy.org/dummy2#".getBytes(Charset.forName("UTF-8"))));
Assert.assertEquals("http://www.dummy.org/dummy2#", service.getNamespace("dummy2"));
}