@Test
public void create_a_page_and_fetch_associated_task() throws Exception {

    ContractToPageMapper contractToPageMapper = makeContractToPageMapper();
    Page page = contractToPageMapper.createFormPage("myPage", aSimpleContract(), FormScope.TASK);
    assertThat(page.getVariables()).contains(entry("task", anURLVariable().value("../API/bpm/userTask/{{taskId}}").build()));
}