This looks like another case where this is checking a test precondition rather than testing program behaviour, so an exception would be more appropriate.