DateIs3TestBean bean = new DateIs3TestBean();
createValueBinding(null, "value", "#{testBean}");
facesContext.getExternalContext().getRequestMap().put("testBean", bean);
rootComponent = new UIViewRoot();
HtmlForm form = new HtmlForm();
form.setId("form");
rootComponent.getChildren().add(form);
inputComponent1 = new HtmlInputText();
form.getChildren().add(inputComponent1);
inputComponent1.setId("input1");
inputComponent2 = new HtmlInputText();
form.getChildren().add(inputComponent2);
inputComponent2.setId("input2");
DateTimeConverter converter = new DateTimeConverter();
converter.setPattern("DD/MM/yyyy");
inputComponent1.setConverter(converter);