source: class ParametrizedWidgetFactoryTest  {
  
      @Rule
      public ExpectedException thrown;
  
      @Test
      public void create_a_datepicker_for_local_date_contract_input() throws Exception {
  
target:         ParametrizedWidgetFactory elementFactory = createFactory();
  
          AbstractParametrizedWidget component = elementFactory
                  .createParametrizedWidget(aLocalDateContractInput("creationLocalDate"));
  
          assertThat(component).isInstanceOf(DatePickerWidget.class);
      }
  
  }