@Test
public void testGetShortformCustomMappings() {

    Map<String, String> pm = new HashMap<>();
    pm.put(prefix1, namespace2);
    pm.put(prefix2, namespace3);
    pm.put(prefix3, namespace4);
    assertEquals("Unexpected shortened form", prefix1 + ":term", URIUtils.getShortform(pm, uri1));
    assertEquals("Unexpected shortened form", prefix2 + ":term", URIUtils.getShortform(pm, uri2));
    assertEquals("Unexpected shortened form", prefix3 + ":term", URIUtils.getShortform(pm, uri3));
}