@Test
public void should_configure_value_property_of_container_with_$item_when_generating_a_multiple_string_in_a_multiple_node_contract_input()
        throws Exception {

    ContractInputToWidgetMapper contractInputToWidgetMapper = makeContractInputToWidgetMapper();
    ContractInput contractInput = aContractInput("names").mulitple().withType(String.class.getName()).build();
    aNodeContractInput("employee").mulitple()
            .withInput(contractInput).build();
    Element container = contractInputToWidgetMapper.toElement(contractInput,
            new ArrayList<List<Element>>());
    assertThat(container).isInstanceOf(Container.class);
    PropertyValue repeatedCollectionPropetyValue = container.getPropertyValues().get("repeatedCollection");
    assertThat(repeatedCollectionPropetyValue.getType()).isEqualTo("variable");
    assertThat(repeatedCollectionPropetyValue.getValue()).isEqualTo("$item.names");
}