}
final Driver driver = new Driver();
OptiqConnection connection = (OptiqConnection)
driver.connect("jdbc:optiq:", new Properties());
SchemaPlus rootSchema = connection.getRootSchema();
rootSchema.add("hr", new ReflectiveSchema(new HrSchema()));
connection.setSchema("hr");
final Statement statement = connection.createStatement();
assertFalse((Boolean) OptiqAssert.call(statement, "isCloseOnCompletion"));
OptiqAssert.call(statement, "closeOnCompletion");
assertTrue((Boolean) OptiqAssert.call(statement, "isCloseOnCompletion"));