title: org.hsqldb.jdbcDriver ClassNotFoundException while running junit test for a method
body: <p>I am using one method which return me a datasource. The method is as below:</p>
  
  <pre><code>public static DataSource getDataSource(){
          String url;
          //url="jdbc:hsqldb:file:"+filePath;
          url = "jdbc:hsqldb:file:D:/EclipseWorskpace/ew-pg/lmexadapter/hsqldb-example/src/main/webapp/WEB-INF/data/db/hsqldb.jar";
          BasicDataSource basicDataSource = new BasicDataSource();
          basicDataSource.setUsername("SA");
          basicDataSource.setPassword("password");
          basicDataSource.setDriverClassName("org.hsqldb.jdbc.JDBCDriver");
          basicDataSource.setUrl(url);
          System.out.println("$$$$$$$$ URL is : " + url);
          return basicDataSource;
      }
  </code></pre>
  
  <p>And I am calling these method from dao. and with all this I am using ibatis for my OR mapping. When I run my test case by junit test it is giving me a exception:</p>
  
  <pre><code>" org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver'
      at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1259)
      at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1192)
      at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:884)
      at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
      at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:213)
      ... 35 more
  Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1253)
      ... 39 more
  "
  </code></pre>