@Test
public void throw_a_IllegalArgumentException_for_unsupported_input_type() throws Exception {

    ParametrizedWidgetFactory elementFactory = createFactory();
    thrown.expect(IllegalArgumentException.class);
    elementFactory.createParametrizedWidget(new LeafContractInput("unsupported", IllegalArgumentException.class));
}