@Test
public void testGetConnectionWithNetorkOption() throws Exception {

    System.setProperty("athenz.db.pool_validation_query", "");
    System.setProperty("athenz.datastore.network_timeout", "20000");
    MockConnectionFactory connectionFactory = new MockConnectionFactory();
    Connection connection = Mockito.mock(Connection.class);
    Mockito.when(connection.isValid(anyInt())).thenReturn(true);
    connectionFactory.setConnection(connection);
    PoolableDataSource src = DataSourceFactory.create(connectionFactory);
    assertNotNull(src);
    Connection conn = src.getConnection();
    assertNotNull(conn);
    System.clearProperty("athenz.db.pool_validation_query");
    System.clearProperty("athenz.datastore.network_timeout");
}