// create a query based on that column
database.getDatabase().getDataSource().createQuery( "q_customers", "SELECT * FROM \"customers\"" );
// load this query, and verify the table column settings was propagated to the query column
XFormController queryViewController = UnoRuntime.queryInterface( XFormController.class,
database.loadSubComponent( DatabaseObject.QUERY, "q_customers" ) );
tableControlModel = UnoRuntime.queryInterface( XNameAccess.class,
queryViewController.getCurrentControl().getModel() );
idColumn = UnoRuntime.queryInterface( XPropertySet.class, tableControlModel.getByName( "ID" ) );
assertTrue( "table column alignment was not propagated to the query column",