I think there's a test helper to do this already. As a setup or something. Check test utils for 'stubCharmIconPath'