@Test
public void create_a_checkbox_for_boolean_contract_input() throws Exception {

    ParametrizedWidgetFactory elementFactory = createFactory();
    AbstractParametrizedWidget component = elementFactory
            .createParametrizedWidget(new LeafContractInput("isValidated", Boolean.class));
    assertThat(component).isInstanceOf(CheckboxWidget.class);
    assertThat(((CheckboxWidget)component).getLabel()).isEqualTo("Is Validated");
}