@Deprecated
  public static Connection getConnection( LogChannelInterface log, DatabaseMeta dbMeta, String partitionId )
    throws Exception {

    DataSource ds = getDataSource( log, dbMeta, partitionId );
    return ds.getConnection();
  }
@Test
  public void testGetConnection() throws Exception {
    when( dbMeta.getName() ).thenReturn( "CP1" );
    when( dbMeta.getPassword() ).thenReturn( PASSWORD );
    when( dbMeta.getInitialPoolSize() ).thenReturn( 1 );
    when( dbMeta.getMaximumPoolSize() ).thenReturn( 2 );
    DataSource conn = ConnectionPoolUtil.getDataSource( logChannelInterface, dbMeta, "" );
    assertNotNull( conn );
  }