@Test
public void submit_button_should_redirect_to_bonita_on_success() throws Exception {

    ContractInputToWidgetMapper contractInputToWidgetMapper = makeContractInputToWidgetMapper();
    Element element = contractInputToWidgetMapper.createSubmitButton(ButtonAction.SUBMIT_TASK);
    PropertyValue PropertyValue = element.getPropertyValues().get("targetUrlOnSuccess");
    assertThat(PropertyValue.getType()).isEqualTo("interpolation");
    assertThat(PropertyValue.getValue()).isEqualTo("/bonita");
}