in maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/resources/TestResources.java [159:169]
public static void create(File basedir, String... paths) throws IOException {
if (paths == null || paths.length == 0) {
throw new IllegalArgumentException();
}
for (String path : paths) {
File file = new File(basedir, path);
Assert.assertTrue(file.getParentFile().mkdirs());
file.createNewFile();
Assert.assertTrue(file.isFile() && file.canRead());
}
}