Unit testing tip – additional override

Check out Unit testing tip – additional override by JR. Here is an excerpt:

If you have have a method you want to test, but it does some stuff you like for convenience, and you don’t really want to mess for the sake of testing, create with some overrides and do your testing there.

+ (void)foo:(NSURLSessionConfiguration *)sessionConfiguration
{
    TokenManager...

The full article is available here.