dont use asserts in util classes
fix test method signature to generic exception to allow for custom exceptions to be thrown