mojo.setPackaging("directory");
mojo.setProjectRootDir(new File("src/test/gettingStarted"));
mojo.setDefaultOutputDir(target);
mojo.setDefaultOutputDirUsage("compile");
mojo.setProject(new MavenProject());
mojo.execute();
assertTrue(target.exists());
File generatedJavaFile = new File(
target,
"org/apache/torque/generator/maven/PropertyKeys.java");