@Test
public void testLoadWithInvalidArguments() throws IOException {

    // shall not accept null arguments
    try {
        loader.load(null);
        fail("IllegalArgumentException expected");
    } catch (IllegalArgumentException e) {
        //ignore
    }
    // shall throw IOException when fed with nonexistent URL
    URL noneExistent = createNonExistentUrl();
    try {
        loader.load(noneExistent);
        fail("IOException expected");
    } catch (IOException e) {
        //ignore
    }
}