private void doTestFileResource(String resourcePath, String[] paths) throws Exception {
File file = getResourceAsFile(resourcePath);
File outputDir = File.createTempFile("testFRSM", "");
outputDir.delete();
outputDir.deleteOnExit();
FileResourceSetMigrator frsm = new FileResourceSetMigrator(file, outputDir,
new SimpleCLINotificationReporter());
PathIdentifyingResourceMigrator migrator =
new PathIdentifyingResourceMigrator(paths);
frsm.migrate(migrator);
if (migrator.failed()) {
fail(migrator.getFailures().toString());
}
}