### Question:
DriverFunctions { public void execWithDatabaseDriver(DatabaseConfig databaseConfig, Consumer<DriverWithConnectivity> consumer) { execWithDatabaseDriver(databaseConfig.getDatabaseVendor(), consumer); }  void execWithDatabaseDriver(DatabaseConfig databaseConfig, Consumer<DriverWithConnectivity> consumer); void execWithDatabaseDriver(DatabaseServerConfig databaseServerConfig,
        Consumer<DriverWithConnectivity> consumer);  }### Answer:
@Test public void testDriverFunctions() { DatabaseConfig databaseConfig = new DatabaseConfig(); databaseConfig.setName("name"); databaseConfig.setDatabaseVendor(DatabaseVendor.POSTGRES); underTest.execWithDatabaseDriver(databaseConfig, d -> assertThat(d.getDelegate() instanceof org.postgresql.Driver).isTrue()); }
@Test public void testDriverFunctionsUnsupportedVendor() { DatabaseServerConfig databaseServerConfig = new DatabaseServerConfig(); databaseServerConfig.setName("name"); databaseServerConfig.setDatabaseVendor(DatabaseVendor.MYSQL); thrown.expect(UnsupportedOperationException.class); underTest.execWithDatabaseDriver(databaseServerConfig, d -> { }); }