@Test
void testBuildServiceIRI() {

    final Config config = new Config();
    config.setIsUBLImageService(true);
    config.setViewId("0000004057");
    config.setImageServiceBaseUrl("https://iiif.ub.uni-leipzig.de/iiif");
    config.setImageServiceImageDirPrefix("/j2k/");
    config.setImageServiceFileExtension(".jpx");
    final IRIBuilder iriBuilder = new IRIBuilder(config);
    final String imageServiceContext = iriBuilder.buildImageServiceContext("0000004057");
    final String resourceIdString = "00000002";
    final IRI serviceIri = iriBuilder.buildServiceIRI(imageServiceContext, resourceIdString);
    assertNotNull(serviceIri);
    assertEquals(
            "https://iiif.ub.uni-leipzig.de/iiif/j2k/0000/0040/0000004057/00000002.jpx", serviceIri.getIRIString());
}