public void ����DataSourceWrapper() throws Exception {
List<DataSourceWrapper> dataSourceWrappers = new ArrayList<DataSourceWrapper>();
dataSourceWrappers.add(new DataSourceWrapper("dbKey1","rw", DataSourceFactory.getMySQLDataSource(1), DBType.MYSQL));
dataSourceWrappers.add(new DataSourceWrapper("dbKey2","r", DataSourceFactory.getMySQLDataSource(2), DBType.MYSQL));
TGroupDataSource ds = new TGroupDataSource();
ds.setDbGroupKey("myDbGroupKey");
ds.init(dataSourceWrappers);
Connection conn = ds.getConnection();
//����Statement��crud
Statement stmt = conn.createStatement();
assertEquals(stmt.executeUpdate("insert into crud(f1,f2) values(10,'str')"), 1);
assertEquals(stmt.executeUpdate("update crud set f2='str2'"), 1);