@Test
public void create_a_page_with_form_input_and_output() throws Exception {

    ContractToPageMapper contractToPageMapper = makeContractToPageMapper();
    Page page = contractToPageMapper.createFormPage("myPage", aContractWithMultipleInput(), FormScope.TASK);
    assertThat(page.getVariables()).contains(entry("formInput", aJSONVariable().value(objectMapper.prettyPrint("{\"names\":[]}")).build()));
    assertThat(page.getVariables()).contains(entry("formOutput", anExpressionVariable().value("return {\n\tnames: $data.formInput.names\n}").build()));
}