@Test
public void should_create_read_only_input_widget_when_leaf_is_readOnly() {

    LeafContractInput input = new LeafContractInput("LastName", String.class);
    input.setReadonly(true);
    AbstractParametrizedWidget widget = this.elementFactory.createParametrizedWidget(input);
    assertThat(widget).isInstanceOf(InputWidget.class);
    assertThat(((InputWidget) widget).isReadOnly()).isEqualTo(true);
    assertThat(((InputWidget) widget).getLabel()).isEqualTo("Last Name");
}