private static Stream<String> resources(final String path) {
		try {
			final String className = TestData.class.getName();
			final String classPath = className.replace(".", "/") + ".class";

			final URL url = TestData.class.getClassLoader().getResource(classPath);
			final String absoluteClassPath = new File(url.toURI()).getAbsolutePath();
			final String basePath = absoluteClassPath.substring(
				0, absoluteClassPath.length() - classPath.length()
			);

			return ofNullable(new File(basePath, path).list())
				.map(Arrays::stream)
				.map(lines -> lines
					.filter(line -> line.endsWith(".dat"))
					.map(line -> (path + "/" + line)))
				.orElse(Stream.empty());

		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
Create a new {@code TestData} object from the given base resource name
and parameters.

@param resource the base resource name
@param parameters the test data parameters
@return a new test data object
jenetics/src/test/java/io/jenetics/util/TestData.java