ClassPathResourceProvider { public static InputStreamReader getResourceReader(String location) { return new InputStreamReader(getResourceInputStream(location), StandardCharsets.UTF_8); }  static String getResourcePath(String location); static String getResourceContent(String location); static List<String> getResourcesContents(String... locations); static InputStream getResourceInputStream(String location); static InputStreamReader getResourceReader(String location);  }
@Test public void givenPathToResource_whenGetResourceInputStreamReaderIsCalled_thenInputStreamReaderIsReturned() { String content = new BufferedReader( getResourceReader("eu/dnetlib/iis/common/data/@a/static-resource-file.txt")) .lines() .collect(Collectors.joining("\n")); assertEquals("This is a static resource file.", content); }