Better yet, split this up into a different test method with an expected (SQL?)Exception. The syntax is something like
```java
@Test(expected = SQLException.class)  
```
See, for example, http://www.mkyong.com/unittest/junit-4-tutorial-2-expected-exception-test/.