@Test
public void resolveWrapsURISyntaxException() {

    try {
        ReferenceResolver.resolve("\\\\somethin\010g invalid///", "segment");
        fail("did not throw exception for invalid URI");
    } catch (RuntimeException e) {
        assertEquals(URISyntaxException.class, e.getCause().getClass());
    }
}