@Test
public void testNamespaceOnly() {

    String result, localName;
    result = URIUtils.getShortform(uri7);
    localName = result.replace(result.substring(0, result.lastIndexOf(":") + 1), "");
    System.out.println("Shortened " + uri7 + " -> " + result);
    assertFalse("Short form results in an invalid localname '" + localName + "'", localName.isEmpty());
    result = URIUtils.getShortform(uri7);
    localName = result.replace(result.substring(0, result.lastIndexOf(":") + 1), "");
    System.out.println("Shortened " + uri7 + " -> " + result);
    assertFalse("Short form results in an invalid localname '" + localName + "'", localName.isEmpty());
}