public class NonPooledDatasourceServiceTest extends TestCase {
public void testGetDatasource() {
Connection connection = null;
try {
NonPooledDatasourceService service = new NonPooledDatasourceService();
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" );