### Question:
InputSourceFactory { @Nullable public static InputSource create (@Nonnull final File aFile) { return create (new FileSystemResource (aFile)); } private  InputSourceFactory(); @Nullable static InputSource create(@Nonnull final File aFile); @Nullable static InputSource create(@Nonnull final Path aPath); @Nonnull static InputSource create(@Nonnull final URI aURI); @Nonnull static InputSource create(@Nonnull final URL aURL); @Nullable static InputSource create(@Nonnull final IHasInputStream aISP); @Nullable static InputSource create(@Nonnull final IReadableResource aResource); @Nonnull static InputSource create(@Nonnull final CharSequence aXML); @Nonnull static InputSource create(@Nonnull final String sXML); @Nonnull static InputSource create(@Nonnull final char [] aXML); @Nonnull static InputSource create(@Nonnull final char [] aXML, @Nonnegative final int nOfs, @Nonnegative final int nLen); @Nonnull static InputSource create(@Nonnull final byte [] aXML); @Nonnull static InputSource create(@Nonnull final byte [] aXML, @Nonnegative final int nOfs, @Nonnegative final int nLen); @Nonnull static InputSource create(@Nonnull final ByteBuffer aXML); @Nullable static InputSource create(@Nullable final InputStream aIS); @Nullable static InputSource create(@Nullable final Reader aReader);  }### Answer:
@Test public void testFile () { assertNotNull (InputSourceFactory.create (new File ("pom.xml"))); assertNull (InputSourceFactory.create (new File ("does.not-exist.xml"))); }