    @Test(expected = ConstrettoException.class)
    public void testOpenNonExistingUrlResource() throws Exception {

        final UrlResource urlResource = new UrlResource("http://donotexist/");
        urlResource.getInputStream();
    }