public void testConnectionPoolWhenExhausted() {
// startTest();
// info("Testing Connecton Pooling"); //$NON-NLS-1$
Connection connection = null;
try {
PooledDatasourceService service = new PooledDatasourceService();
DataSource ds = service.getDataSource( "SampleData" );
for ( int i = 0; i < 10; i++ ) {
connection = ds.getConnection();
System.out.println( "Got the " + ( i + 1 ) + " Connection" );
}
fail( "Not expected to reach here" );