public void testEachValidStatement(
     final SQLQueryExecutionService queryExecutionService, final String sqlFile) {
   Statements.forEachValid(
       getClass().getClassLoader(),
       sqlFile,
       new Statements.StringProcessor() {
         @Override
         public void call(String line) {
           try {
             queryExecutionService.execute(line);
           } catch (Exception e) {
             e.printStackTrace();
             TestCase.fail();
           }
         }
       });
 }
 public void testEachInvalidStatement(
     final SQLQueryExecutionService queryExecutionService, final String sqlFile) {
   Statements.forEachInValid(
       getClass().getClassLoader(),
       sqlFile,
       new Statements.StringProcessor() {
         @Override
         public void call(String line) {
           try {
             queryExecutionService.execute(line);
             TestCase.fail();
           } catch (HibernateException he) {
             if (he.getLocalizedMessage().startsWith("No Session")) {
               TestCase.fail();
             }
             he.printStackTrace();
           }
         }
       });
 }