public static String getResourceFileAsText(String name) {
        try {
            String lineEnd = System.getProperty("line.separator"); // $NON-NLS-1$
            InputStream is = JMeterUtils.class.getClassLoader().getResourceAsStream(name);
            if (is != null) {
                try (Reader in = new InputStreamReader(is, StandardCharsets.UTF_8);
                     BufferedReader fileReader = new BufferedReader(in)) {
                    return fileReader.lines()
                            .collect(Collectors.joining(lineEnd, "", lineEnd));
                }
            } else {
                return ""; // $NON-NLS-1$
            }
        } catch (IOException e) {
            return ""; // $NON-NLS-1$
        }
    }
@Test
    public void testGetResourceFileAsTextWithMisingResource() throws Exception{
        assertEquals("", JMeterUtils.getResourceFileAsText("not_existant_resourcefile.txt"));
    }