DataSourceInfo dataSource =
NonVisualBeanContainerInfo.get(canvas).getChildren(DataSourceInfo.class).get(0);
assertThat(canvas.getChildren(FilterBuilderInfo.class).size()).isEqualTo(1);
assertThat(canvas.getChildren(CalendarInfo.class).size()).isEqualTo(1);
// create new DataSourceField
DataSourceFieldInfo dataSourceField =
createJavaInfo("com.smartgwt.client.data.fields.DataSourceBooleanField");
{
FlowContainer flowContainer = new FlowContainerFactory(dataSource, false).get().get(0);
assertTrue(flowContainer.validateComponent(dataSourceField));
flowContainer.command_CREATE(dataSourceField, null);