@Test
public void testGetUnknownStrict() {

    try {
        // no namespace for uri4 - default configuration should cause this to fail
        String shortform = URIUtils.getShortform(uri4);
        System.out.println("Shortened " + uri4 + " -> " + shortform);
        fail("Shortened " + uri4 + " in strict mode with missing namespace, this should cause an error");
    }
    catch (IllegalArgumentException e) {
        e.printStackTrace();
    }
    catch (Exception e) {
        e.printStackTrace();
        fail("Expected IllegalArgumentException, actually got " + e.getClass().getSimpleName() + " " +
                     "(" + e.getMessage() + ")");
    }
}