@Test
public void should_read_only_string_contract_input_create_an_text_widget_id() throws Exception {

    ContractInputToWidgetMapper contractInputToWidgetMapper = makeContractInputToWidgetMapper();
    Component element = (Component) contractInputToWidgetMapper.toElement(aReadOnlyStringContractInput("firstName"),
            Collections.<List<Element>> emptyList());
    assertThat(element.getId()).isEqualTo("pbText");
    assertThat(element.getPropertyValues().get("allowHtml").getValue()).isEqualTo(true);
}