@Test
public void should_submit_button_have_contract_action() throws Exception {

    ContractInputToWidgetMapper contractInputToWidgetMapper = makeContractInputToWidgetMapper();
    Element element = contractInputToWidgetMapper.createSubmitButton(ButtonAction.SUBMIT_TASK);
    assertThat(element.getPropertyValues().get("action").getValue()).isEqualTo("Submit task");
}