I want to test validation logic in a legacy class. The class uses a method to load effective dates from a config file. 

I have written a subclass of the class in question and overridden the config method so I can run my unit test against the subclass with any combination of effective dates.

Is this an appropriate strategy? It strikes me as a clean technique for testing code that you don't want to mess with.