### Question:
FileSource implements Source { @Override public String getLocation() { return file.getPath(); } 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 testGetLocation() { File txtFile = new File( "target/test-classes/source.txt" ); FileSource source = new FileSource( txtFile ); assertEquals( txtFile.getAbsolutePath(), source.getLocation() ); }