### Question:
DBCPDataSourceProvider implements DataSourceProvider { @Override public void hasStarted() throws Exception { } DBCPDataSourceProvider(); @Inject  DBCPDataSourceProvider(DBCPDriverProvider driverProvider,
                                  MavenArtifactResolver artifactResolver); @Override DataSourceDeploymentInfo deploy(DataSourceDef dataSourceDef); @Override DataSourceDeploymentInfo resync(final DataSourceDef dataSourceDef,
                                           final DataSourceDeploymentInfo deploymentInfo); @Override void undeploy(DataSourceDeploymentInfo deploymentInfo); @Override DataSourceDeploymentInfo getDeploymentInfo(String uuid); @Override List< DataSourceDeploymentInfo > getDeploymentsInfo(); @Override List< DataSourceDef > getDeployments(); @Override void loadConfig(Properties properties); @Override DataSource lookupDataSource(DataSourceDeploymentInfo deploymentInfo); @Override void hasStarted();  }### Answer:
@Test public void testHasStarted() { try { dataSourceProvider.hasStarted(); } catch (Exception e) { fail("The hasStarted method of the DBCPDataSourceProviderTest never throws exceptions by construction"); } }