@Test(expected = IOException.class)
public void testInvalidURL() throws IOException {

    JSONParser.getJSONFromURL(new URL("invalidURL"), ImageIngester.DEFAULT_CONNECT_TIMEOUT);
    fail("URL should be invalid");
}