@Test
public void should_generated_repeatable_container_when_contract_input_is_multiple() {

    BusinessObjectContainer boc = new BusinessObjectContainer();
    BusinessDataToWidgetMapper businessDataToWidgetMapper = makeBusinessDataToWidgetMapper(boc);
    NodeBusinessObjectInput node = new NodeBusinessObjectInput("com.invoice.model.customer", "customer");
    node.setMultiple(true);
    node.addInput(aContractInput("labels").withType(String.class.getName()).mulitple().build());
    LeafContractInput contractInput = (LeafContractInput) node.getInput().get(0);
    List<Element> elements = businessDataToWidgetMapper.toElement(contractInput);
    assertThat(elements.size()).isEqualTo(2);
    assertThat(((Component) elements.get(0)).getId()).isEqualTo("pbTitle");
    Container multipleContainer = (Container) elements.get(1);
    assertThat(multipleContainer.getPropertyValues().get("repeatedCollection").getValue()).isEqualTo("customer_selected.labels");
}