}
@Test
public void writeSubProjectHeader() throws IOException {
final Project project = context.mock(Project.class);
TestStyledTextOutput textOutput = new TestStyledTextOutput();
context.checking(new Expectations() {{
allowing(project).getRootProject();
will(returnValue(context.mock(Project.class, "root")));
allowing(project).getDescription();
will(returnValue(null));
allowing(project).getPath();
will(returnValue("<path>"));
}});
renderer.setOutput(textOutput);
renderer.startProject(project);
renderer.completeProject(project);
renderer.complete();
assertThat(textOutput.toString(), containsLine("Project <path>"));
}