@Test
public void should_configure_value_property_of_input_with_$item_when_generating_a_multiple_string_in_a_multiple_leaf_contract_input() {

    BusinessDataToWidgetMapper businessDataToWidgetMapper = makeBusinessDataToWidgetMapper(new BusinessObjectContainer());
    ContractInput contractInput = aContractInput("names").mulitple().withType(String.class.getName()).build();
    NodeBusinessObjectInput node = new NodeBusinessObjectInput("com.company.model.person", "person");
    node.setMultiple(true);
    node.addInput(contractInput);
    List<Element> elements = businessDataToWidgetMapper.toElement((LeafContractInput) contractInput);
    Container container = (Container) elements.get(1);
    assertThat(container).isInstanceOf(Container.class);
    PropertyValue repeatedCollectionPropetyValue = container.getPropertyValues().get("repeatedCollection");
    assertThat(repeatedCollectionPropetyValue.getType()).isEqualTo("variable");
    assertThat(repeatedCollectionPropetyValue.getValue()).isEqualTo("person_selected.names");
    Element input = container.getRows().get(0).get(0);
    PropertyValue inputPropertyValue = input.getPropertyValues().get("value");
    assertThat(inputPropertyValue.getValue()).isEqualTo("$item");
}