cpds.setUser(null);
cpds.setPassword(null);
cpds = null;
// now with XADataSource
EmbeddedXADataSource xads = new EmbeddedXADataSource();
System.out.println("XADataSource - EMPTY");
dsConnectionRequests((XADataSource) xads);
System.out.println("XADataSource - databaseName=wombat");
xads.setDatabaseName("wombat");
dsConnectionRequests((XADataSource) xads);
xads.setDatabaseName(null);
System.out.println("XADataSource - connectionAttributes=databaseName=wombat");
xads.setConnectionAttributes("databaseName=wombat");
dsConnectionRequests((XADataSource) xads);
xads.setConnectionAttributes(null);
System.out.println("XADataSource - attributesAsPassword=true");
xads.setAttributesAsPassword(true);
dsConnectionRequests((XADataSource) xads);
xads.setAttributesAsPassword(false);
System.out.println("XADataSource - databaseName=wombat, attributesAsPassword=true");
xads.setDatabaseName("wombat");
xads.setAttributesAsPassword(true);
dsConnectionRequests((XADataSource) xads);
xads.setAttributesAsPassword(false);
xads.setDatabaseName(null);
}