@Test
void testBuildCanvasIRI() {

    final Config config = new Config();
    config.setBaseUrl("http://example.org/");
    config.setViewId("12345");
    config.setImageServiceBaseUrl("https://iiif.ub.uni-leipzig.de/iiif");
    config.setImageServiceImageDirPrefix("/j2k/");
    config.setCanvasContext("/canvas");
    final IRIBuilder iriBuilder = new IRIBuilder(config);
    final String viewId = "12345";
    final String resourceFileId = "00000001";
    final String resourceIdString = config.getBaseUrl() + viewId + config.getCanvasContext() + "/" + resourceFileId;
    final IRI canvasIRI = iriBuilder.buildCanvasIRI(resourceIdString);
    assertEquals("http://example.org/12345/canvas/00000001", canvasIRI.getIRIString());
}