It is necessary to isolate the functionality for unit tests to another class according to the SRP principle.