GenericProperty property = (GenericProperty) calendar.getPropertyByTitle("dataSource");
ObjectPropertyEditor editor = (ObjectPropertyEditor) property.getEditor();
DataSourceInfo dataSource =
NonVisualBeanContainerInfo.get(calendar).getChildren(DataSourceInfo.class).get(0);
// check special target
StatementTarget target = dataSource.calculateStatementTarget(calendar);
assertNotNull(target);
Statement statement = AstNodeUtils.getEnclosingStatement(this.<ASTNode>getNode("testDS"));
assertTarget(target, null, statement, false);
// assign
editor.setComponent(property, dataSource);