@Test
public void forJavaProject() throws IOException {
final GradleBuildFileGenerator generator = new GradleBuildFileGenerator();
final String project = "javaproject";
final File parent = new File("target", project);
GradleProjectBuilderForJavaProject builder = GradleProjectBuilderForJavaProject
.forProject(project)
.applyFroms("\"$emmaPlugin\"")
.applyPlugins(
"net.sf.mygradlebuild.plugins.JavaProjectDistribution");
generator.forJavaProject(parent, builder);