@Test
public void hasToString() {
assertThat(gradle.toString(), equalTo("build"));
final ProjectInternal project = context.mock(ProjectInternal.class);
context.checking(new Expectations(){{
allowing(project).getName();
will(returnValue("rootProject"));
}});
gradle.setRootProject(project);
assertThat(gradle.toString(), equalTo("build 'rootProject'"));