Exposing private methods for unit testing