title: Read file on target/test-classes FileNotFound
body: <p>I´m reading a file from my resource folder in a unit test</p>
  
  <p>I can see the file in the target/test-classes</p>
  
  <p>But when I try to wrap the file into a fileInputStream this one throw the exception because cannot find the file</p>
  
  <pre><code>ClassLoader classLoader = getClass().getClassLoader();
  File file = new File(classLoader.getResource("CV.pdf").getFile());
  FileInputStream fis = new FileInputStream(file)
  </code></pre>
  
  <p>Output debuging:</p>
  
  <p>classLoader.getResource("CV.pdf"):</p>
  
  <pre><code>file:/Users/Development/File%20-%20Test%20Java%20trial/Code/target/test-classes/CV.pdf
  </code></pre>
  
  <p>Maybe it could be because my folder has whitespace names?</p>
  
  <p>The file is there for sure, I can seen it in that folder.</p>
  
  <p>What I´m doing wrong here?.</p>
  
  <p>Regards.</p>