If this is only for testing, I'd prefer to use reflection in the test.