public void addsTasksToProject() {
plugin.apply(project);
Task task = project.getTasks().getByName(ProjectReportsPlugin.TASK_REPORT);
assertThat(task, instanceOf(TaskReportTask.class));
assertThat(task.property("outputFile"), equalTo((Object) new File(project.getBuildDir(), "reports/project/tasks.txt")));
assertThat(task.property("projects"), equalTo((Object) WrapUtil.toSet(project)));
task = project.getTasks().getByName(ProjectReportsPlugin.PROPERTY_REPORT);
assertThat(task, instanceOf(PropertyReportTask.class));
assertThat(task.property("outputFile"), equalTo((Object) new File(project.getBuildDir(), "reports/project/properties.txt")));