### Question:
OracleSpecifics { static Connection createCustomDriverConnection(OracleDriverConnectionInfo connInfo, ConnectorMessages cm) { try { return SQLUtil.getDriverMangerConnection(connInfo.getDriver(), connInfo.getUrl(), connInfo.getUser(), connInfo.getPassword()); } catch (RuntimeException e) { throw new ConnectorException(cm.format(MSG_CUSTOM_CONNECTION_ERROR, null, getCauseMessage(e)), getCause(e)); } } private  OracleSpecifics();   }### Answer:
@Test public void testCustomDriverConnection() { String user = TEST_PROPS.getStringProperty("customDriver.user"); String password = TEST_PROPS.getStringProperty("customDriver.password"); String url = TEST_PROPS.getStringProperty("customDriver.url"); String driver = TEST_PROPS.getStringProperty("customDriver.driverClassName"); Connection conn = OracleSpecifics.createCustomDriverConnection(new Builder().setUser(user) .setPassword(new GuardedString(password.toCharArray())).setUrl(url) .setDriver(driver).build(), TestHelpers.createDummyMessages()); Assert.assertNotNull(conn); SQLUtil.closeQuietly(conn); }