DataNodeDescriptor nodeDescriptor = new DataNodeDescriptor();
nodeDescriptor.setConfigurationSource(new URLResource(url));
nodeDescriptor.setParameters("testDBCP_legacy.properties");
DBCPDataSourceFactory factory = new DBCPDataSourceFactory();
DataSource dataSource = factory.getDataSource(nodeDescriptor);
assertNotNull(dataSource);
assertTrue(dataSource instanceof BasicDataSource);
BasicDataSource basicDataSource = (BasicDataSource) dataSource;
assertEquals("com.example.jdbc.Driver", basicDataSource.getDriverClassName());