JTDSDataSourceFactory implements DataSourceFactory { @Override public Driver createDriver(Properties props) { return new Driver(); } JTDSDataSourceFactory(); @Override JtdsDataSource createDataSource(Properties props); @Override JtdsDataSource createConnectionPoolDataSource(Properties props); @Override JtdsDataSource createXADataSource(Properties props); @Override Driver createDriver(Properties props);  }
@Test public void testDriver() { JTDSDataSourceFactory dsf = new JTDSDataSourceFactory(); Properties props = testProps(); Driver driver = dsf.createDriver(props); assertNotNull(driver); }