(ConnectionPoolDataSource)cpds);
cpds.setConnectionAttributes(null);
cpds.setDatabaseName(null);
// now with XADataSource
ClientXADataSource xads = new ClientXADataSource();
xads.setPortNumber(TestConfiguration.getCurrent().getPort());
// XADataSource - EMPTY
dsConnectionRequests(new String[]
{"08001","08001","08001","08001",
"08001","08001","08001","08001","08001"},
(XADataSource) xads);
// XADataSource - connectionAttributes=databaseName=<valid dbname>
xads.setConnectionAttributes("databaseName=wombat");
dsConnectionRequests(new String[]
{"08001","08001","08001","08001",
"08001","08001","08001","08001","08001"},
(XADataSource) xads);
xads.setConnectionAttributes(null);
// Test that database name specified in connection attributes is not used
// XADataSource - databaseName=wombat and
// connectionAttributes=databaseName=kangaroo
xads.setConnectionAttributes("databaseName=kangaroo");
xads.setDatabaseName("wombat");
dsConnectionRequests(new String[]
{"OK","08001","OK","OK","08001","08001","OK","OK","OK"},
(XADataSource) xads);
xads.setConnectionAttributes(null);
xads.setDatabaseName(null);
} // End testClientDSConnectionAttributes