### Question:
URLResource implements IReadableResource { public boolean exists () { if (URLHelper.PROTOCOL_FILE.equals (m_aURL.getProtocol ())) return getAsFile ().exists (); InputStream aIS = null; try { aIS = getInputStream (); return aIS != null; } catch (final Exception ex) { return false; } finally { StreamHelper.close (aIS); } } URLResource(@Nonnull final ISimpleURL aURL);  URLResource(@Nonnull final String sURL);  URLResource(@Nonnull final URI aURI);  URLResource(@Nonnull final URL aURL); static boolean isExplicitURLResource(@Nullable final String sName); @Nonnull String getResourceID(); @Nonnull String getPath(); @Nullable static InputStream getInputStream(@Nonnull final URL aURL); @Nullable InputStream getInputStream(); @Nullable InputStream getInputStream(@CheckForSigned final int nConnectTimeoutMS, @CheckForSigned final int nReadTimeoutMS); @Nullable InputStream getInputStream(@Nullable final IMutableWrapper <IOException> aExceptionHolder); @Nullable InputStream getInputStream(@CheckForSigned final int nConnectTimeoutMS,
                                     @CheckForSigned final int nReadTimeoutMS,
                                     @Nullable final IMutableWrapper <IOException> aExceptionHolder); @Nullable InputStream getInputStream(@CheckForSigned final int nConnectTimeoutMS,
                                     @CheckForSigned final int nReadTimeoutMS,
                                     @Nullable final Consumer <? super URLConnection> aConnectionModifier,
                                     @Nullable final IMutableWrapper <IOException> aExceptionHolder); final boolean isReadMultiple(); boolean exists(); @Nonnull URL getAsURL(); @Nullable URI getAsURI(); @Nullable File getAsFile(); @Nonnull URLResource getReadableCloneForPath(@Nonnull final URL aURL); @Nonnull URLResource getReadableCloneForPath(@Nonnull final String sPath); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final int DEFAULT_CONNECT_TIMEOUT; static final int DEFAULT_READ_TIMEOUT; }### Answer:
@Test public void testCtor () throws MalformedURLException { assertNotNull (new URLResource ("http: assertNotNull (new URLResource ("http: assertNotNull (new URLResource ("http: assertNotNull (new URLResource ("http: assertNotNull (new URLResource ("http: assertNotNull (new URLResource ("http: assertNotNull (new URLResource ("http: assertNotNull (new URLResource ("http: assertNotNull (new URLResource ("http: assertNotNull (new URLResource ("file: new URLResource ("http: new URLResource ("http: try { new URLResource ("test1.txt"); fail (); } catch (final MalformedURLException ex) {} try { new URLResource ((URL) null); fail (); } catch (final NullPointerException ex) {} }