the api should have a mechanism to do this; indirect clearing of api backings means that your tests are wrong if the api changes how it backs itself.