I personally prefer checked exceptions for these, but this only for tests so I am not as picky.