public static File[] getPathFiles(String path) throws FileNotFoundException {
        URL url = ResourceUtils.class.getClassLoader().getResource(path);
        if (url == null) {
            throw new FileNotFoundException("path not found: " + path);
        }
        return Arrays.stream(Objects.requireNonNull(new File(url.getPath()).listFiles(), "No files in " + path))
                     .filter(File::isFile).toArray(File[]::new);
    }
@Test
    public void testGetPathFilesSuccess() throws FileNotFoundException {
        final File[] files = ResourceUtils.getPathFiles("testdata");
        assertNotNull(files);
        assertEquals(1, files.length);
    }