title: Mockito: Test a method that takes string of long length
body: <p>My method returns an exception if the input String (StringBuilder in my case) is longer than 2048 characters. Since we cannot mock final classes using Mockito, can anyone tells me how do unit test this.</p>
  
  <p>One way is to actually pass a string that long which seems stupid. Is there an easy way to test this?</p>