### Question:
VaadinUiCreator { public static Component createComponent(Object pmo, BindingContext bindingContext) { ComponentWrapper wrapper = UiCreator.createComponent(pmo, bindingContext); return (Component)wrapper.getComponent(); } private  VaadinUiCreator(); static Component createComponent(Object pmo, BindingContext bindingContext);  }### Answer:
@SuppressWarnings("deprecation") @Test public void testCreateComponent() { TestPmo pmo = new TestPmo(); BindingContext bindingContext = new BindingContext(); Component component = VaadinUiCreator.createComponent(pmo, bindingContext); assertThat(component, instanceOf(org.linkki.core.vaadin.component.section.FormSection.class)); assertThat(bindingContext.getBindings(), hasSize(1)); Binding binding = bindingContext.getBindings().iterator().next(); assertThat(binding.getBoundComponent(), is(component)); assertThat(binding, is(instanceOf(BindingContext.class))); Collection<Binding> elementBindings = ((BindingContext)binding).getBindings(); assertThat(elementBindings.size(), is(1)); assertThat(elementBindings.iterator().next().getBoundComponent(), is(instanceOf(TextField.class))); }