@Test
public void testConstructsChildProjectWithBuildFile() throws IOException {
File buildFile = new File(projectDir, "build.gradle");
FileUtils.writeStringToFile(buildFile, "build");
ProjectDescriptor rootDescriptor = descriptor("root");
ProjectDescriptor parentDescriptor = descriptor("parent");
ProjectDescriptor projectDescriptor = descriptor("somename", projectDir, buildFile, "build.gradle");
DefaultProject rootProject = projectFactory.createProject(rootDescriptor, null, gradle);
DefaultProject parentProject = projectFactory.createProject(parentDescriptor, rootProject, gradle);
DefaultProject project = projectFactory.createProject(projectDescriptor, parentProject, gradle);