@Test
public void create_a_page_display_task_name() throws Exception {

    ContractToPageMapper contractToPageMapper = makeContractToPageMapper();
    TitleWidget title = new TitleWidget();
    title.setLevel("Level 1");
    title.setText("{{ task.displayName }}");
    title.setAlignment(Alignment.CENTER);
    Page page = contractToPageMapper.createFormPage("myPage", aSimpleContract(), FormScope.TASK);
    assertThat(grabTaskInformation(page).getRows().get(0).get(0).getPropertyValues().containsKey("class")).isFalse();
    assertThat(grabTaskInformation(page).getRows().get(0).get(0)).isEqualToIgnoringGivenFields(title.toComponent(new DimensionFactory()), "reference");
}