@Test(expected = IllegalArgumentException.class)
public void testNullName() throws MalformedURLException {

    URL url = new URL("http://www.sejda.org");
    PdfURLSource.newInstanceWithPassword(url, null, null);
}