title: How write a unit test for verifying compiling error?
body: <p>I'm trying to write a test to verify a compiling error. It's about assigning a number to a String type property. But since it's a compiling error, the unit test code won't even be compiled at the first place. So anyone have any suggestion on how to do this?</p>
  
  <p>I'm thinking maybe I can assign the number in runtime and check to see if certain exception got thrown? But I'm not sure how exactly to do that.</p>
  
  <p>Thanks in advance!</p>