code: private String readResource(final String resourceName) throws IOException {
        return new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(resourceName), DEFAULT_CHARSET)).lines().collect(Collectors.joining("\n"));
     }
docs: Reads the given resource as a string.
  
  @param resourceName
  The name of the resource to read.
  @return The content of the resource as a string.
  @throws IOException
  When it was not possible to read the resource.