### Question:
FileSource implements Source { public File getFile() { return file; } FileSource( File file ); @Override InputStream getInputStream(); @Override String getLocation(); File getFile(); @Override String toString(); @Override int hashCode(); @Override boolean equals( Object obj );  }### Answer:
@Test public void testGetFile() { File txtFile = new File( "target/test-classes/source.txt" ); FileSource source = new FileSource( txtFile ); assertEquals( txtFile.getAbsoluteFile(), source.getFile() ); }