GenericProperty property = (GenericProperty) calendar.getPropertyByTitle("dataSource");
ObjectPropertyEditor editor = (ObjectPropertyEditor) property.getEditor();
DataSourceInfo dataSource =
NonVisualBeanContainerInfo.get(calendar).getChildren(DataSourceInfo.class).get(0);
// check special target
assertNull(dataSource.calculateStatementTarget(calendar));
// assign
editor.setComponent(property, dataSource);
assertEditor(
"public class Test implements EntryPoint {",
" private DataSource dataSource;",