@Test
public void create_a_page_with_a_submit_button_sending_contract() throws Exception {

    ContractToPageMapper contractToPageMapper = makeContractToPageMapper();
    Page page = contractToPageMapper.createFormPage("myPage", aContractWithMultipleInput(), FormScope.TASK);
    Component submitButon = (Component) getTaskFormContainerContent(page).getRows().get(3).get(0);
    assertThat(submitButon.getId()).isEqualTo("pbButton");
    assertThat(submitButon.getPropertyValues()).contains(
            entry(ParameterConstants.DATA_TO_SEND_PARAMETER, anExpressionPropertyValue("formOutput")),
            entry(ParameterConstants.ACTION_PARAMETER, aConstantPropertyValue(ButtonAction.SUBMIT_TASK.getValue())),
            entry(ParameterConstants.TARGET_URL_ON_SUCCESS_PARAMETER, aInterpolationPropertyValue("/bonita")));
}