title: How to force a method to throw an Exception in jUnit testing?
body: <p>Actually this is for code coverage and I'm having a hard time, covering to <code>catch</code> statements.
  Any ideas? </p>
  
  <p>for example: </p>
  
  <p>I want my <code>selectSomethingBySomething()</code> method (which selects from db) to throw an <code>SQLException</code> which is pretty hard on a test method without actually touching the actual source code. Given also the constraint that what I can only control is the parameters for the <code>WHERE</code> clause.</p>