I would suggest the use of @Rule ExpectedException, as you can tell it to expect the exception right before calling the "create" so you will be sure the exception is not thrown somewhere else. Also using only the Exception is not the best idea, as it might throw a different exception you did not expect, making this test false positive (or false negative? not sure about the naming, but you know what I mean :) ).