title: Loading json into my unit test from a text file
body: <p>I am working in AEM trying to get create txt files with JSON output so that I can load them into my unit test as strings and test my model / model processors. So far I have this...</p>
  
  <pre><code>public String readFile(String path, Charset encoding) throws IOException
  {
      byte[] encoded = Files.readAllBytes(Paths.get(path));
      return new String(encoded, encoding);
  }
  
  private String sampleInput = readFile("/test/resources/map/sample-
  input.txt",Charset.forName("UTF-8"));
  </code></pre>
  
  <p>I need sampleInput to take the json that is in 'sampleInput.txt' and convert it to a string. I am also running into issues with the Charset encoding. </p>