My initial reaction was to delete this code because I couldn't figure out why it existed. There are some test cases for supporting mocking of private APIs which seemed like something I would never do but I can see why we would provide it. Though if we can do that with subclassing then that probably makes more sense.